pub struct DirectionsDistance {
pub text: String,
pub value: u32,
}
Expand description
A representation of distance as a numeric value and a display string.
Fields§
§text: String
A string representation of the distance value, using the
with_unit_system()
specified in the request.
value: u32
Indicates the distance in meters.
Trait Implementations§
source§impl Clone for DirectionsDistance
impl Clone for DirectionsDistance
source§fn clone(&self) -> DirectionsDistance
fn clone(&self) -> DirectionsDistance
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 DirectionsDistance
impl Debug for DirectionsDistance
source§impl<'de> Deserialize<'de> for DirectionsDistance
impl<'de> Deserialize<'de> for DirectionsDistance
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 DirectionsDistance
impl Hash for DirectionsDistance
source§impl Ord for DirectionsDistance
impl Ord for DirectionsDistance
source§fn cmp(&self, other: &DirectionsDistance) -> Ordering
fn cmp(&self, other: &DirectionsDistance) -> 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 DirectionsDistance
impl PartialEq for DirectionsDistance
source§fn eq(&self, other: &DirectionsDistance) -> bool
fn eq(&self, other: &DirectionsDistance) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DirectionsDistance
impl PartialOrd for DirectionsDistance
source§fn partial_cmp(&self, other: &DirectionsDistance) -> Option<Ordering>
fn partial_cmp(&self, other: &DirectionsDistance) -> 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 DirectionsDistance
impl Serialize for DirectionsDistance
impl Eq for DirectionsDistance
impl StructuralPartialEq for DirectionsDistance
Auto Trait Implementations§
impl Freeze for DirectionsDistance
impl RefUnwindSafe for DirectionsDistance
impl Send for DirectionsDistance
impl Sync for DirectionsDistance
impl Unpin for DirectionsDistance
impl UnwindSafe for DirectionsDistance
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