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

pub struct SpeedReadingInterval {
    pub start_polyline_point_index: i32,
    pub end_polyline_point_index: i32,
    pub speed: i32,
}

Traffic density indicator on a contiguous segment of a polyline or path. Given a path with points P_0, P_1, … , P_N (zero-based index), the SpeedReadingInterval defines an interval and describes its traffic using the following categories.

Fields

start_polyline_point_index: i32

The starting index of this interval in the polyline. In JSON, when the index is 0, the field appears to be unpopulated.

end_polyline_point_index: i32

The ending index of this interval in the polyline. In JSON, when the index is 0, the field appears to be unpopulated.

speed: i32

Traffic speed in this interval.

Implementations

impl SpeedReadingInterval[src]

pub fn speed(&self) -> Speed[src]

Returns the enum value of speed, or the default if the field is set to an invalid enum value.

pub fn set_speed(&mut self, value: Speed)[src]

Sets speed to the provided enum value.

Trait Implementations

impl Clone for SpeedReadingInterval[src]

impl Debug for SpeedReadingInterval[src]

impl Default for SpeedReadingInterval[src]

impl Message for SpeedReadingInterval[src]

impl PartialEq<SpeedReadingInterval> for SpeedReadingInterval[src]

impl StructuralPartialEq for SpeedReadingInterval[src]

Auto Trait Implementations

impl RefUnwindSafe for SpeedReadingInterval

impl Send for SpeedReadingInterval

impl Sync for SpeedReadingInterval

impl Unpin for SpeedReadingInterval

impl UnwindSafe for SpeedReadingInterval

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]