[][src]Struct google_maps::directions::response::transit_vehicle::TransitVehicle

pub struct TransitVehicle {
    pub icon: String,
    pub local_icon: Option<String>,
    pub name: String,
    pub vehicle_type: VehicleType,
}

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

impl Clone for TransitVehicle[src]

impl Debug for TransitVehicle[src]

impl<'de> Deserialize<'de> for TransitVehicle[src]

impl Eq for TransitVehicle[src]

impl Hash for TransitVehicle[src]

impl Ord for TransitVehicle[src]

impl PartialEq<TransitVehicle> for TransitVehicle[src]

impl PartialOrd<TransitVehicle> for TransitVehicle[src]

impl Serialize for TransitVehicle[src]

impl StructuralEq for TransitVehicle[src]

impl StructuralPartialEq for TransitVehicle[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,