Struct gapi_grpc::google::maps::routes::v1::RouteModifiers[][src]

pub struct RouteModifiers {
    pub avoid_tolls: bool,
    pub avoid_highways: bool,
    pub avoid_ferries: bool,
    pub avoid_indoor: bool,
    pub vehicle_info: Option<VehicleInfo>,
    pub toll_passes: Vec<i32>,
}

Encapsulates a set of optional conditions to satisfy when calculating the routes.

Fields

avoid_tolls: bool

Specifies whether to avoid toll roads where reasonable. Preference will be given to routes not containing toll roads. Applies only to the DRIVE and TWO_WHEELER travel modes.

avoid_highways: bool

Specifies whether to avoid highways where reasonable. Preference will be given to routes not containing highways. Applies only to the DRIVE and TWO_WHEELER travel modes.

avoid_ferries: bool

Specifies whether to avoid ferries where reasonable. Preference will be given to routes not containing travel by ferries. Applies only to the DRIVE andTWO_WHEELER travel modes.

avoid_indoor: bool

Specifies whether to avoid navigating indoors where reasonable. Preference will be given to routes not containing indoor navigation. Applies only to the WALK travel mode.

vehicle_info: Option<VehicleInfo>

Optional. Specifies the vehicle information.

toll_passes: Vec<i32>

Encapsulates information about toll passes. TollPass is unset means no available pass. Applies only to the DRIVE and TWO_WHEELER travel modes.

Implementations

impl RouteModifiers[src]

pub fn toll_passes(
    &self
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<TollPass>>
[src]

Returns an iterator which yields the valid enum values contained in toll_passes.

pub fn push_toll_passes(&mut self, value: TollPass)[src]

Appends the provided enum value to toll_passes.

Trait Implementations

impl Clone for RouteModifiers[src]

impl Debug for RouteModifiers[src]

impl Default for RouteModifiers[src]

impl Message for RouteModifiers[src]

impl PartialEq<RouteModifiers> for RouteModifiers[src]

impl StructuralPartialEq for RouteModifiers[src]

Auto Trait Implementations

impl RefUnwindSafe for RouteModifiers

impl Send for RouteModifiers

impl Sync for RouteModifiers

impl Unpin for RouteModifiers

impl UnwindSafe for RouteModifiers

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> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> IntoRequest<T> for 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>, 
[src]

impl<T> WithSubscriber for T[src]