pub struct TransitTime {
pub text: String,
pub time_zone: Tz,
pub value: NaiveDateTime,
}Expand description
A representation of time as a Date object, a localized string, and a time zone.
Fields§
§text: StringA string representing the time’s value. The time is displayed in the time zone of the transit stop.
time_zone: TzThe time zone in which this stop lies. The value is the name of the time
zone as defined in the IANA Time Zone
Database, e.g. “America/New_York”.
value: NaiveDateTimeThe time of this departure or arrival.
Trait Implementations§
Source§impl Clone for TransitTime
impl Clone for TransitTime
Source§fn clone(&self) -> TransitTime
fn clone(&self) -> TransitTime
Returns a duplicate 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 TransitTime
impl Debug for TransitTime
Source§impl<'de> Deserialize<'de> for TransitTime
impl<'de> Deserialize<'de> for TransitTime
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 Hash for TransitTime
impl Hash for TransitTime
Source§impl PartialEq for TransitTime
impl PartialEq for TransitTime
Source§impl Serialize for TransitTime
impl Serialize for TransitTime
impl Eq for TransitTime
impl StructuralPartialEq for TransitTime
Auto Trait Implementations§
impl Freeze for TransitTime
impl RefUnwindSafe for TransitTime
impl Send for TransitTime
impl Sync for TransitTime
impl Unpin for TransitTime
impl UnsafeUnpin for TransitTime
impl UnwindSafe for TransitTime
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.