Struct lta_models::bus::bus_arrival::NextBus
source · pub struct NextBus {
pub origin_code: u32,
pub dest_code: u32,
pub est_arrival: OffsetDateTime,
pub lat: f64,
pub long: f64,
pub visit_no: u8,
pub load: BusLoad,
pub feature: BusFeature,
pub bus_type: BusType,
}
Fields§
§origin_code: u32
§dest_code: u32
§est_arrival: OffsetDateTime
Time in GMT+8
lat: f64
§long: f64
§visit_no: u8
§load: BusLoad
§feature: BusFeature
§bus_type: BusType
Trait Implementations§
source§impl<'de> Deserialize<'de> for NextBus
impl<'de> Deserialize<'de> for NextBus
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<NextBusRaw> for NextBus
impl From<NextBusRaw> for NextBus
source§fn from(r: NextBusRaw) -> Self
fn from(r: NextBusRaw) -> Self
Converts to this type from the input type.
source§impl PartialEq for NextBus
impl PartialEq for NextBus
source§impl PartialOrd for NextBus
impl PartialOrd for NextBus
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl StructuralPartialEq for NextBus
Auto Trait Implementations§
impl RefUnwindSafe for NextBus
impl Send for NextBus
impl Sync for NextBus
impl Unpin for NextBus
impl UnwindSafe for NextBus
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