[][src]Struct google_maps::TransitLine

pub struct TransitLine {
    pub name: Option<String>,
    pub short_name: Option<String>,
    pub color: Option<String>,
    pub agencies: Vec<TransitAgency>,
    pub url: Option<String>,
    pub icon: Option<String>,
    pub text_color: Option<String>,
    pub vehicle: TransitVehicle,
}

Contains the type of vehicle used on this line.

Fields

name: Option<String>

Contains the full name of this transit line. eg. "7 Avenue Express"

short_name: Option<String>

Contains the short name of this transit line. This will normally be a line number, such as "M7" or "355".

color: Option<String>

Contains the color commonly used in signage for this transit line. The color will be specified as a hex string such as: #FF0033.

agencies: Vec<TransitAgency>

An array containing a single TransitAgency object. The TransitAgency object provides information about the operator of the line

url: Option<String>

Contains the URL for this transit line as provided by the transit agency.

icon: Option<String>

Contains the URL for the icon associated with this line.

text_color: Option<String>

Contains the color of text commonly used for signage of this line. The color will be specified as a hex string.

vehicle: TransitVehicle

Trait Implementations

impl Clone for TransitLine[src]

impl Debug for TransitLine[src]

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

impl Eq for TransitLine[src]

impl Hash for TransitLine[src]

impl Ord for TransitLine[src]

impl PartialEq<TransitLine> for TransitLine[src]

impl PartialOrd<TransitLine> for TransitLine[src]

impl Serialize for TransitLine[src]

impl StructuralEq for TransitLine[src]

impl StructuralPartialEq for TransitLine[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: 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>,