pub struct GoogleMapsPlacesV1RoutingParameters {
pub origin: Option<GoogleTypeLatLng>,
pub route_modifiers: Option<GoogleMapsPlacesV1RouteModifiers>,
pub routing_preference: Option<String>,
pub travel_mode: Option<String>,
}Expand description
Parameters to configure the routing calculations to the places in the response, both along a route (where result ranking will be influenced) and for calculating travel times on results.
This type is not used in any activity, and only used as part of another schema.
Fields§
§origin: Option<GoogleTypeLatLng>Optional. An explicit routing origin that overrides the origin defined in the polyline. By default, the polyline origin is used.
route_modifiers: Option<GoogleMapsPlacesV1RouteModifiers>Optional. The route modifiers.
routing_preference: Option<String>Optional. Specifies how to compute the routing summaries. The server attempts to use the selected routing preference to compute the route. The traffic aware routing preference is only available for the DRIVE or TWO_WHEELER travelMode.
travel_mode: Option<String>Optional. The travel mode.
Trait Implementations§
Source§impl Clone for GoogleMapsPlacesV1RoutingParameters
impl Clone for GoogleMapsPlacesV1RoutingParameters
Source§fn clone(&self) -> GoogleMapsPlacesV1RoutingParameters
fn clone(&self) -> GoogleMapsPlacesV1RoutingParameters
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for GoogleMapsPlacesV1RoutingParameters
impl Default for GoogleMapsPlacesV1RoutingParameters
Source§fn default() -> GoogleMapsPlacesV1RoutingParameters
fn default() -> GoogleMapsPlacesV1RoutingParameters
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GoogleMapsPlacesV1RoutingParameters
impl<'de> Deserialize<'de> for GoogleMapsPlacesV1RoutingParameters
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Part for GoogleMapsPlacesV1RoutingParameters
Auto Trait Implementations§
impl Freeze for GoogleMapsPlacesV1RoutingParameters
impl RefUnwindSafe for GoogleMapsPlacesV1RoutingParameters
impl Send for GoogleMapsPlacesV1RoutingParameters
impl Sync for GoogleMapsPlacesV1RoutingParameters
impl Unpin for GoogleMapsPlacesV1RoutingParameters
impl UnwindSafe for GoogleMapsPlacesV1RoutingParameters
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more