Struct google_api_proto::google::ads::googleads::v16::services::PlannableLocation
source · pub struct PlannableLocation {
pub id: Option<String>,
pub name: Option<String>,
pub parent_country_id: Option<i64>,
pub country_code: Option<String>,
pub location_type: Option<String>,
}
Expand description
A plannable location: country, metro region, province, etc.
Fields§
§id: Option<String>
The location identifier.
name: Option<String>
The unique location name in English.
parent_country_id: Option<i64>
The parent country (not present if location is a country). If present, will always be a GeoTargetConstant ID. Additional information such as country name is provided by [ReachPlanService.ListPlannableLocations][google.ads.googleads.v16.services.ReachPlanService.ListPlannableLocations] or GoogleAdsService.Search/SearchStream.
country_code: Option<String>
The ISO-3166-1 alpha-2 country code that is associated with the location.
location_type: Option<String>
The location’s type. Location types correspond to target_type returned by searching location type in GoogleAdsService.Search/SearchStream.
Implementations§
source§impl PlannableLocation
impl PlannableLocation
sourcepub fn parent_country_id(&self) -> i64
pub fn parent_country_id(&self) -> i64
Returns the value of parent_country_id
, or the default value if parent_country_id
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 location_type(&self) -> &str
pub fn location_type(&self) -> &str
Returns the value of location_type
, or the default value if location_type
is unset.
Trait Implementations§
source§impl Clone for PlannableLocation
impl Clone for PlannableLocation
source§fn clone(&self) -> PlannableLocation
fn clone(&self) -> PlannableLocation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PlannableLocation
impl Debug for PlannableLocation
source§impl Default for PlannableLocation
impl Default for PlannableLocation
source§impl Message for PlannableLocation
impl Message for PlannableLocation
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 PlannableLocation
impl PartialEq for PlannableLocation
source§fn eq(&self, other: &PlannableLocation) -> bool
fn eq(&self, other: &PlannableLocation) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PlannableLocation
Auto Trait Implementations§
impl Freeze for PlannableLocation
impl RefUnwindSafe for PlannableLocation
impl Send for PlannableLocation
impl Sync for PlannableLocation
impl Unpin for PlannableLocation
impl UnwindSafe for PlannableLocation
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