[−][src]Enum google_maps::directions::request::transit_route_preference::TransitRoutePreference
Specifies preferences for transit routes.
Using this parameter, you can bias the options returned, rather than accepting the default best route chosen by the API. 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
Specifies that the calculated route should prefer a limited number of transfers.
Specifies that the calculated route should prefer limited amounts of walking.
Methods
impl TransitRoutePreference
[src]
pub fn source_code_print(&self) -> String
[src]
Converts a TransitRoutePreference
enum to a String
that contains a
pretty source-code-style transit route preference
code for debugging.
Trait Implementations
impl Clone for TransitRoutePreference
[src]
fn clone(&self) -> TransitRoutePreference
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TransitRoutePreference
[src]
impl<'_> From<&'_ TransitRoutePreference> for String
[src]
fn from(transit_route_preference: &TransitRoutePreference) -> String
[src]
Converts a TransitRoutePreference
enum to a String
that contains a
transit route preference
code.
impl From<String> for TransitRoutePreference
[src]
fn from(transit_route_preference: String) -> TransitRoutePreference
[src]
Gets a TransitRoutePreference
enum from a String
that contains a
valid transit route preference
code.
Auto Trait Implementations
impl RefUnwindSafe for TransitRoutePreference
impl Send for TransitRoutePreference
impl Sync for TransitRoutePreference
impl Unpin for TransitRoutePreference
impl UnwindSafe for TransitRoutePreference
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,