Struct google_api_proto::google::ads::googleads::v16::resources::GeoTargetConstant
source · pub struct GeoTargetConstant {
pub resource_name: String,
pub id: Option<i64>,
pub name: Option<String>,
pub country_code: Option<String>,
pub target_type: Option<String>,
pub status: i32,
pub canonical_name: Option<String>,
pub parent_geo_target: Option<String>,
}
Expand description
A geo target constant.
Fields§
§resource_name: String
Output only. The resource name of the geo target constant. Geo target constant resource names have the form:
geoTargetConstants/{geo_target_constant_id}
id: Option<i64>
Output only. The ID of the geo target constant.
name: Option<String>
Output only. Geo target constant English name.
country_code: Option<String>
Output only. The ISO-3166-1 alpha-2 country code that is associated with the target.
target_type: Option<String>
Output only. Geo target constant target type.
status: i32
Output only. Geo target constant status.
canonical_name: Option<String>
Output only. The fully qualified English name, consisting of the target’s name and that of its parent and country.
parent_geo_target: Option<String>
Output only. The resource name of the parent geo target constant. Geo target constant resource names have the form:
geoTargetConstants/{parent_geo_target_constant_id}
Implementations§
source§impl GeoTargetConstant
impl GeoTargetConstant
sourcepub fn status(&self) -> GeoTargetConstantStatus
pub fn status(&self) -> GeoTargetConstantStatus
Returns the enum value of status
, or the default if the field is set to an invalid enum value.
sourcepub fn set_status(&mut self, value: GeoTargetConstantStatus)
pub fn set_status(&mut self, value: GeoTargetConstantStatus)
Sets status
to the provided enum value.
sourcepub fn parent_geo_target(&self) -> &str
pub fn parent_geo_target(&self) -> &str
Returns the value of parent_geo_target
, or the default value if parent_geo_target
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 target_type(&self) -> &str
pub fn target_type(&self) -> &str
Returns the value of target_type
, or the default value if target_type
is unset.
sourcepub fn canonical_name(&self) -> &str
pub fn canonical_name(&self) -> &str
Returns the value of canonical_name
, or the default value if canonical_name
is unset.
Trait Implementations§
source§impl Clone for GeoTargetConstant
impl Clone for GeoTargetConstant
source§fn clone(&self) -> GeoTargetConstant
fn clone(&self) -> GeoTargetConstant
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GeoTargetConstant
impl Debug for GeoTargetConstant
source§impl Default for GeoTargetConstant
impl Default for GeoTargetConstant
source§impl Message for GeoTargetConstant
impl Message for GeoTargetConstant
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 GeoTargetConstant
impl PartialEq for GeoTargetConstant
source§fn eq(&self, other: &GeoTargetConstant) -> bool
fn eq(&self, other: &GeoTargetConstant) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GeoTargetConstant
Auto Trait Implementations§
impl Freeze for GeoTargetConstant
impl RefUnwindSafe for GeoTargetConstant
impl Send for GeoTargetConstant
impl Sync for GeoTargetConstant
impl Unpin for GeoTargetConstant
impl UnwindSafe for GeoTargetConstant
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