Struct google_maps::directions::response::transit_vehicle::TransitVehicle
source · pub struct TransitVehicle {
pub icon: String,
pub local_icon: Option<String>,
pub name: String,
pub vehicle_type: VehicleType,
}
Expand description
Contains the type of vehicle used on this line.
Fields§
§icon: String
Contains the URL for an icon associated with this vehicle type.
local_icon: Option<String>
Contains the URL for the icon associated with this vehicle type, based on the local transport signage.
name: String
Contains the name of the vehicle on this line. eg. “Subway.”
vehicle_type: VehicleType
Contains the type of vehicle that runs on this line. See the Vehicle Type documentation for a complete list of supported values.
Trait Implementations§
source§impl Clone for TransitVehicle
impl Clone for TransitVehicle
source§fn clone(&self) -> TransitVehicle
fn clone(&self) -> TransitVehicle
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 TransitVehicle
impl Debug for TransitVehicle
source§impl<'de> Deserialize<'de> for TransitVehicle
impl<'de> Deserialize<'de> for TransitVehicle
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 TransitVehicle
impl Hash for TransitVehicle
source§impl Ord for TransitVehicle
impl Ord for TransitVehicle
source§fn cmp(&self, other: &TransitVehicle) -> Ordering
fn cmp(&self, other: &TransitVehicle) -> 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 TransitVehicle
impl PartialEq for TransitVehicle
source§fn eq(&self, other: &TransitVehicle) -> bool
fn eq(&self, other: &TransitVehicle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TransitVehicle
impl PartialOrd for TransitVehicle
source§fn partial_cmp(&self, other: &TransitVehicle) -> Option<Ordering>
fn partial_cmp(&self, other: &TransitVehicle) -> 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 TransitVehicle
impl Serialize for TransitVehicle
impl Eq for TransitVehicle
impl StructuralPartialEq for TransitVehicle
Auto Trait Implementations§
impl RefUnwindSafe for TransitVehicle
impl Send for TransitVehicle
impl Sync for TransitVehicle
impl Unpin for TransitVehicle
impl UnwindSafe for TransitVehicle
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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.