Struct lta_models::bus::bus_services::BusService
source · pub struct BusService {
pub service_no: String,
pub operator: Operator,
pub no_direction: u8,
pub category: BusCategory,
pub origin_code: Option<NonZeroU8>,
pub dest_code: Option<NonZeroU8>,
pub am_peak_freq: BusFreq,
pub am_offpeak_freq: BusFreq,
pub pm_peak_freq: BusFreq,
pub pm_offpeak_freq: BusFreq,
pub loop_desc: String,
}
Fields§
§service_no: String
§operator: Operator
§no_direction: u8
§category: BusCategory
§origin_code: Option<NonZeroU8>
§dest_code: Option<NonZeroU8>
§am_peak_freq: BusFreq
§am_offpeak_freq: BusFreq
§pm_peak_freq: BusFreq
§pm_offpeak_freq: BusFreq
§loop_desc: String
Trait Implementations§
source§impl Clone for BusService
impl Clone for BusService
source§fn clone(&self) -> BusService
fn clone(&self) -> BusService
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BusService
impl Debug for BusService
source§impl<'de> Deserialize<'de> for BusService
impl<'de> Deserialize<'de> for BusService
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<BusServiceRaw> for BusService
impl From<BusServiceRaw> for BusService
source§fn from(r: BusServiceRaw) -> Self
fn from(r: BusServiceRaw) -> Self
Converts to this type from the input type.
source§impl PartialEq for BusService
impl PartialEq for BusService
source§fn eq(&self, other: &BusService) -> bool
fn eq(&self, other: &BusService) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BusService
impl Serialize for BusService
impl StructuralPartialEq for BusService
Auto Trait Implementations§
impl RefUnwindSafe for BusService
impl Send for BusService
impl Sync for BusService
impl Unpin for BusService
impl UnwindSafe for BusService
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more