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
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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