Struct google_api_proto::google::maps::addressvalidation::v1::Address
source · pub struct Address {
pub formatted_address: String,
pub postal_address: Option<PostalAddress>,
pub address_components: Vec<AddressComponent>,
pub missing_component_types: Vec<String>,
pub unconfirmed_component_types: Vec<String>,
pub unresolved_tokens: Vec<String>,
}
Expand description
Details of the post-processed address. Post-processing includes correcting misspelled parts of the address, replacing incorrect parts, and inferring missing parts.
Fields§
§formatted_address: String
The post-processed address, formatted as a single-line address following the address formatting rules of the region where the address is located.
postal_address: Option<PostalAddress>
The post-processed address represented as a postal address.
address_components: Vec<AddressComponent>
Unordered list. The individual address components of the formatted and corrected address, along with validation information. This provides information on the validation status of the individual components.
Address components are not ordered in a particular way. Do not make any assumptions on the ordering of the address components in the list.
missing_component_types: Vec<String>
The types of components that were expected to be present in a correctly
formatted mailing address but were not found in the input AND could
not be inferred. Components of this type are not present in
formatted_address
, postal_address
, or address_components
. An
example might be \['street_number', 'route'\]
for an input like
“Boulder, Colorado, 80301, USA”. The list of possible types can be found
here.
unconfirmed_component_types: Vec<String>
The types of the components that are present in the address_components
but could not be confirmed to be correct. This field is provided for the
sake of convenience: its contents are equivalent to iterating through the
address_components
to find the types of all the components where the
[confirmation_level][google.maps.addressvalidation.v1.AddressComponent.confirmation_level]
is not
[CONFIRMED][google.maps.addressvalidation.v1.AddressComponent.ConfirmationLevel.CONFIRMED]
or the
[inferred][google.maps.addressvalidation.v1.AddressComponent.inferred]
flag is not set to true
. The list of possible types can be found
here.
unresolved_tokens: Vec<String>
Any tokens in the input that could not be resolved. This might be an
input that was not recognized as a valid part of an address (for example
in an input like “123235253253 Main St, San Francisco, CA, 94105”, the
unresolved tokens may look like \["123235253253"\]
since that does not
look like a valid street number.
Trait Implementations§
source§impl Message for Address
impl Message for Address
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 Address
impl PartialEq for Address
impl StructuralPartialEq for Address
Auto Trait Implementations§
impl Freeze for Address
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
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