pub struct Maneuver {
Show 26 fields pub type_: ManeuverType, pub instruction: String, pub verbal_transition_alert_instruction: Option<String>, pub verbal_pre_transition_instruction: String, pub verbal_post_transition_instruction: Option<String>, pub street_names: Option<Vec<String>>, pub begin_street_names: Option<Vec<String>>, pub time: f64, pub length: f64, pub begin_shape_index: usize, pub end_shape_index: usize, pub toll: Option<bool>, pub highway: Option<bool>, pub rough: Option<bool>, pub gate: Option<bool>, pub ferry: Option<bool>, pub sign: Option<Sign>, pub roundabout_exit_count: Option<i64>, pub depart_instruction: Option<String>, pub verbal_depart_instruction: Option<String>, pub arrive_instruction: Option<String>, pub verbal_arrive_instruction: Option<String>, pub transit_info: Option<TransitInfo>, pub verbal_multi_cue: Option<bool>, pub travel_mode: TravelMode, pub bss_maneuver_type: Option<BssManeuverType>,
}

Fields§

§type_: ManeuverType§instruction: String§verbal_transition_alert_instruction: Option<String>

Text suitable for use as a verbal alert in a navigation application. The transition alert instruction will prepare the user for the forthcoming transition. For example: “Turn right onto North Prince Street”.

§verbal_pre_transition_instruction: String

Text suitable for use as a verbal message immediately prior to the maneuver transition. For example “Turn right onto North Prince Street, U.S. 2 22”.

§verbal_post_transition_instruction: Option<String>

Text suitable for use as a verbal message immediately after the maneuver transition. For example “Continue on U.S. 2 22 for 3.9 miles”.

§street_names: Option<Vec<String>>

List of street names that are consistent along the entire nonobvious maneuver.

§begin_street_names: Option<Vec<String>>

When present, these are the street names at the beginning (transition point) of the nonobvious maneuver (if they are different than the names that are consistent along the entire nonobvious maneuver).

§time: f64

Estimated time along the maneuver in seconds.

§length: f64

Maneuver length in the units specified.

§begin_shape_index: usize

Index into the list of shape points for the start of the maneuver.

§end_shape_index: usize

Index into the list of shape points for the end of the maneuver.

§toll: Option<bool>

True if a toll booth is encountered on this maneuver.

§highway: Option<bool>

True if a highway is encountered on this maneuver.

§rough: Option<bool>

True if the maneuver is unpaved or rough pavement, or has any portions that have rough pavement.

§gate: Option<bool>

True if a gate is encountered on this maneuver.

§ferry: Option<bool>

True if a ferry is encountered on this maneuver.

§sign: Option<Sign>

Contains the interchange guide information at a road junction associated with this maneuver. See below for details.

§roundabout_exit_count: Option<i64>

The spoke to exit roundabout after entering.

§depart_instruction: Option<String>

Written depart time instruction. Typically used with a transit maneuver, such as “Depart: 8:04 AM from 8 St - NYU”.

§verbal_depart_instruction: Option<String>

Text suitable for use as a verbal depart time instruction. Typically used with a transit maneuver, such as “Depart at 8:04 AM from 8 St - NYU”.

§arrive_instruction: Option<String>

Written arrive time instruction. Typically used with a transit maneuver, such as “Arrive: 8:10 AM at 34 St - Herald Sq”.

§verbal_arrive_instruction: Option<String>

Text suitable for use as a verbal arrive time instruction. Typically used with a transit maneuver, such as “Arrive at 8:10 AM at 34 St - Herald Sq”.

§transit_info: Option<TransitInfo>

Contains the attributes that describe a specific transit route. See below for details.

§verbal_multi_cue: Option<bool>

Contains the attributes that describe a specific transit stop. See below for details. True if the verbal_pre_transition_instruction has been appended with the verbal instruction of the next maneuver.

§travel_mode: TravelMode

Travel mode.

§bss_maneuver_type: Option<BssManeuverType>

Used when travel_mode is bikeshare. Describes bike share maneuver. The default value is NoneAction

Trait Implementations§

source§

impl Clone for Maneuver

source§

fn clone(&self) -> Maneuver

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Maneuver

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Maneuver

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,