Struct google_api_proto::google::maps::routing::v2::GeocodedWaypoint
source · pub struct GeocodedWaypoint {
pub geocoder_status: Option<Status>,
pub intermediate_waypoint_request_index: Option<i32>,
pub type: Vec<String>,
pub partial_match: bool,
pub place_id: String,
}
Expand description
Details about the locations used as waypoints. Only populated for address waypoints. Includes details about the geocoding results for the purposes of determining what the address was geocoded to.
Fields§
§geocoder_status: Option<Status>
Indicates the status code resulting from the geocoding operation.
intermediate_waypoint_request_index: Option<i32>
The index of the corresponding intermediate waypoint in the request. Only populated if the corresponding waypoint is an intermediate waypoint.
type: Vec<String>
The type(s) of the result, in the form of zero or more type tags. Supported types: Address types and address component types.
partial_match: bool
Indicates that the geocoder did not return an exact match for the original request, though it was able to match part of the requested address. You may wish to examine the original request for misspellings and/or an incomplete address.
place_id: String
The place ID for this result.
Implementations§
source§impl GeocodedWaypoint
impl GeocodedWaypoint
sourcepub fn intermediate_waypoint_request_index(&self) -> i32
pub fn intermediate_waypoint_request_index(&self) -> i32
Returns the value of intermediate_waypoint_request_index
, or the default value if intermediate_waypoint_request_index
is unset.
Trait Implementations§
source§impl Clone for GeocodedWaypoint
impl Clone for GeocodedWaypoint
source§fn clone(&self) -> GeocodedWaypoint
fn clone(&self) -> GeocodedWaypoint
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GeocodedWaypoint
impl Debug for GeocodedWaypoint
source§impl Default for GeocodedWaypoint
impl Default for GeocodedWaypoint
source§impl Message for GeocodedWaypoint
impl Message for GeocodedWaypoint
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for GeocodedWaypoint
impl PartialEq for GeocodedWaypoint
source§fn eq(&self, other: &GeocodedWaypoint) -> bool
fn eq(&self, other: &GeocodedWaypoint) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GeocodedWaypoint
Auto Trait Implementations§
impl Freeze for GeocodedWaypoint
impl RefUnwindSafe for GeocodedWaypoint
impl Send for GeocodedWaypoint
impl Sync for GeocodedWaypoint
impl Unpin for GeocodedWaypoint
impl UnwindSafe for GeocodedWaypoint
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request