Enum google_maps::directions::request::transit_mode::TransitMode [−][src]
pub enum TransitMode { Bus, Rail, Subway, Train, Tram, }
Expand description
Specifies one or more preferred modes of transit.
This parameter may only be specified for transit directions, and only if the request includes an API key or a Google Maps Platform Premium Plan client ID.
Variants
Indicates that the calculated route should prefer travel by bus.
Indicates that the calculated route should prefer travel by train, tram,
light rail, and subway. This is equivalent to
transit_mode=train|tram|subway
.
Indicates that the calculated route should prefer travel by subway.
Indicates that the calculated route should prefer travel by train.
Indicates that the calculated route should prefer travel by tram and light rail. Indicates that the calculated route should prefer travel by tram and light rail.
Trait Implementations
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
Converts a TransitMode
enum to a String
that contains a transit
mode
code.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Gets a TransitMode
enum from a String
that contains a valid transit
mode
code.
Auto Trait Implementations
impl RefUnwindSafe for TransitMode
impl Send for TransitMode
impl Sync for TransitMode
impl Unpin for TransitMode
impl UnwindSafe for TransitMode
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V