Struct google_maps::directions::response::transit_time::TransitTime
source · 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§
source§impl Clone for TransitTime
impl Clone for TransitTime
source§fn clone(&self) -> TransitTime
fn clone(&self) -> TransitTime
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 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§fn eq(&self, other: &TransitTime) -> bool
fn eq(&self, other: &TransitTime) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TransitTime
impl Serialize for TransitTime
impl Eq for TransitTime
impl StructuralPartialEq for TransitTime
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§
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.