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

pub struct RouteLegTravelAdvisory {
    pub toll_info: Option<TollInfo>,
    pub speed_reading_intervals: Vec<SpeedReadingInterval>,
}

Encapsulates the additional information that the user should be informed about, such as possible traffic zone restriction etc. on a route leg.

Fields

toll_info: Option<TollInfo>

Encapsulates information about tolls on the specific RouteLeg. This field is only populated if we expect there are tolls on the RouteLeg. If this field is set but the estimated_price subfield is not populated, we expect that road contains tolls but we do not know an estimated price. If this field does not exist, then there is no toll on the RouteLeg.

speed_reading_intervals: Vec<SpeedReadingInterval>

Speed reading intervals detailing traffic density. Applicable in case of TRAFFIC_AWARE and TRAFFIC_AWARE_OPTIMAL routing preferences. The intervals cover the entire polyline of the RouteLg without overlap. The start point of a specified interval is the same as the end point of the preceding interval.

Example:

polyline: A ---- B ---- C ---- D ---- E ---- F ---- G
speed_reading_intervals: [A,C), [C,D), [D,G).

Trait Implementations

impl Clone for RouteLegTravelAdvisory[src]

impl Debug for RouteLegTravelAdvisory[src]

impl Default for RouteLegTravelAdvisory[src]

impl Message for RouteLegTravelAdvisory[src]

impl PartialEq<RouteLegTravelAdvisory> for RouteLegTravelAdvisory[src]

impl StructuralPartialEq for RouteLegTravelAdvisory[src]

Auto Trait Implementations

impl RefUnwindSafe for RouteLegTravelAdvisory

impl Send for RouteLegTravelAdvisory

impl Sync for RouteLegTravelAdvisory

impl Unpin for RouteLegTravelAdvisory

impl UnwindSafe for RouteLegTravelAdvisory

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]