Struct google_maps::directions::response::transit_fare::TransitFare
source · pub struct TransitFare {
pub currency: TransitCurrency,
pub text: String,
pub value: Decimal,
}
Expand description
If present, contains the total fare (that is, the total ticket costs) on this route. This property is only returned for transit requests and only for routes where fare information is available for all transit legs.
Fields§
§currency: TransitCurrency
An ISO 4217 currency code indicating the currency that the amount is expressed in.
text: String
The total fare amount, formatted in the requested language.
value: Decimal
The total fare amount, in the currency specified above.
Trait Implementations§
source§impl Clone for TransitFare
impl Clone for TransitFare
source§fn clone(&self) -> TransitFare
fn clone(&self) -> TransitFare
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 TransitFare
impl Debug for TransitFare
source§impl<'de> Deserialize<'de> for TransitFare
impl<'de> Deserialize<'de> for TransitFare
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 TransitFare
impl Hash for TransitFare
source§impl Ord for TransitFare
impl Ord for TransitFare
source§fn cmp(&self, other: &TransitFare) -> Ordering
fn cmp(&self, other: &TransitFare) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for TransitFare
impl PartialEq for TransitFare
source§fn eq(&self, other: &TransitFare) -> bool
fn eq(&self, other: &TransitFare) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TransitFare
impl PartialOrd for TransitFare
source§fn partial_cmp(&self, other: &TransitFare) -> Option<Ordering>
fn partial_cmp(&self, other: &TransitFare) -> 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 TransitFare
impl Serialize for TransitFare
impl Eq for TransitFare
impl StructuralPartialEq for TransitFare
Auto Trait Implementations§
impl Freeze for TransitFare
impl RefUnwindSafe for TransitFare
impl Send for TransitFare
impl Sync for TransitFare
impl Unpin for TransitFare
impl UnwindSafe for TransitFare
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