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

pub struct NavigationInstruction {
    pub maneuver: i32,
    pub instructions: String,
}

Fields

maneuver: i32

Encapsulates the navigation instructions for the current step (e.g., turn left, merge, straight, etc.). This field determines which icon to display.

instructions: String

Instructions for navigating this step.

Implementations

impl NavigationInstruction[src]

pub fn maneuver(&self) -> Maneuver[src]

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

pub fn set_maneuver(&mut self, value: Maneuver)[src]

Sets maneuver to the provided enum value.

Trait Implementations

impl Clone for NavigationInstruction[src]

impl Debug for NavigationInstruction[src]

impl Default for NavigationInstruction[src]

impl Message for NavigationInstruction[src]

impl PartialEq<NavigationInstruction> for NavigationInstruction[src]

impl StructuralPartialEq for NavigationInstruction[src]

Auto Trait Implementations

impl RefUnwindSafe for NavigationInstruction

impl Send for NavigationInstruction

impl Sync for NavigationInstruction

impl Unpin for NavigationInstruction

impl UnwindSafe for NavigationInstruction

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]