Struct google_api_proto::google::ads::googleads::v15::common::AddressInfo
source · pub struct AddressInfo {
pub postal_code: Option<String>,
pub province_code: Option<String>,
pub country_code: Option<String>,
pub province_name: Option<String>,
pub street_address: Option<String>,
pub street_address2: Option<String>,
pub city_name: Option<String>,
}
Expand description
Address for proximity criterion.
Fields§
§postal_code: Option<String>
Postal code.
province_code: Option<String>
Province or state code.
country_code: Option<String>
Country code.
province_name: Option<String>
Province or state name.
street_address: Option<String>
Street address line 1.
street_address2: Option<String>
Street address line 2. This field is write-only. It is only used for calculating the longitude and latitude of an address when geo_point is empty.
city_name: Option<String>
Name of the city.
Implementations§
source§impl AddressInfo
impl AddressInfo
sourcepub fn postal_code(&self) -> &str
pub fn postal_code(&self) -> &str
Returns the value of postal_code
, or the default value if postal_code
is unset.
sourcepub fn province_code(&self) -> &str
pub fn province_code(&self) -> &str
Returns the value of province_code
, or the default value if province_code
is unset.
sourcepub fn country_code(&self) -> &str
pub fn country_code(&self) -> &str
Returns the value of country_code
, or the default value if country_code
is unset.
sourcepub fn province_name(&self) -> &str
pub fn province_name(&self) -> &str
Returns the value of province_name
, or the default value if province_name
is unset.
sourcepub fn street_address(&self) -> &str
pub fn street_address(&self) -> &str
Returns the value of street_address
, or the default value if street_address
is unset.
sourcepub fn street_address2(&self) -> &str
pub fn street_address2(&self) -> &str
Returns the value of street_address2
, or the default value if street_address2
is unset.
Trait Implementations§
source§impl Clone for AddressInfo
impl Clone for AddressInfo
source§fn clone(&self) -> AddressInfo
fn clone(&self) -> AddressInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AddressInfo
impl Debug for AddressInfo
source§impl Default for AddressInfo
impl Default for AddressInfo
source§impl Message for AddressInfo
impl Message for AddressInfo
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 AddressInfo
impl PartialEq for AddressInfo
source§fn eq(&self, other: &AddressInfo) -> bool
fn eq(&self, other: &AddressInfo) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AddressInfo
Auto Trait Implementations§
impl Freeze for AddressInfo
impl RefUnwindSafe for AddressInfo
impl Send for AddressInfo
impl Sync for AddressInfo
impl Unpin for AddressInfo
impl UnwindSafe for AddressInfo
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