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

pub struct ListNearestRoadsRequest {
    pub points: String,
    pub travel_mode: i32,
}

A request to the ListNearestRoads method, requesting that a sequence of points be snapped individually to the road segment that each is closest to.

Fields

points: String

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

travel_mode: i32

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

Implementations

impl ListNearestRoadsRequest[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 ListNearestRoadsRequest[src]

impl Debug for ListNearestRoadsRequest[src]

impl Default for ListNearestRoadsRequest[src]

impl Message for ListNearestRoadsRequest[src]

impl PartialEq<ListNearestRoadsRequest> for ListNearestRoadsRequest[src]

impl StructuralPartialEq for ListNearestRoadsRequest[src]

Auto Trait Implementations

impl RefUnwindSafe for ListNearestRoadsRequest

impl Send for ListNearestRoadsRequest

impl Sync for ListNearestRoadsRequest

impl Unpin for ListNearestRoadsRequest

impl UnwindSafe for ListNearestRoadsRequest

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]