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