Struct gapi_grpc::google::maps::roads::v1op::SnapToRoadsRequest[][src]

pub struct SnapToRoadsRequest {
    pub path: String,
    pub interpolate: bool,
    pub asset_id: String,
    pub travel_mode: i32,
}

A request to the SnapToRoads method, requesting that a sequence of points be snapped to road segments.

Fields

path: String

The path to be snapped as a series of lat, lng points. Specified as a string of the format: lat,lng|lat,lng|…

interpolate: bool

Whether to interpolate the points to return full road geometry.

asset_id: String

The asset ID of the asset to which this path relates. This is used for abuse detection purposes for clients with asset-based SKUs.

travel_mode: i32

The type of travel being tracked. This will constrain the paths we snap to.

Implementations

impl SnapToRoadsRequest[src]

pub fn travel_mode(&self) -> TravelMode[src]

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

pub fn set_travel_mode(&mut self, value: TravelMode)[src]

Sets travel_mode to the provided enum value.

Trait Implementations

impl Clone for SnapToRoadsRequest[src]

impl Debug for SnapToRoadsRequest[src]

impl Default for SnapToRoadsRequest[src]

impl Message for SnapToRoadsRequest[src]

impl PartialEq<SnapToRoadsRequest> for SnapToRoadsRequest[src]

impl StructuralPartialEq for SnapToRoadsRequest[src]

Auto Trait Implementations

impl RefUnwindSafe for SnapToRoadsRequest

impl Send for SnapToRoadsRequest

impl Sync for SnapToRoadsRequest

impl Unpin for SnapToRoadsRequest

impl UnwindSafe for SnapToRoadsRequest

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]