Struct lta_models::bus::bus_services::BusServiceRaw
source · pub struct BusServiceRaw {
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 BusServiceRaw
impl Clone for BusServiceRaw
source§fn clone(&self) -> BusServiceRaw
fn clone(&self) -> BusServiceRaw
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 BusServiceRaw
impl Debug for BusServiceRaw
source§impl<'de> Deserialize<'de> for BusServiceRaw
impl<'de> Deserialize<'de> for BusServiceRaw
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 BusServiceRaw
impl PartialEq for BusServiceRaw
source§fn eq(&self, other: &BusServiceRaw) -> bool
fn eq(&self, other: &BusServiceRaw) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BusServiceRaw
impl Serialize for BusServiceRaw
impl StructuralPartialEq for BusServiceRaw
Auto Trait Implementations§
impl RefUnwindSafe for BusServiceRaw
impl Send for BusServiceRaw
impl Sync for BusServiceRaw
impl Unpin for BusServiceRaw
impl UnwindSafe for BusServiceRaw
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