Struct google_maps::directions::response::transit_time::TransitTime [−][src]
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: String
A string representing the timeās value. The time is displayed in the time zone of the transit stop.
time_zone: Tz
The 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: NaiveDateTime
The time of this departure or arrival.
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for TransitTime
impl Send for TransitTime
impl Sync for TransitTime
impl Unpin for TransitTime
impl UnwindSafe for TransitTime
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V