Struct google_api_proto::google::ads::admanager::v1::CustomTargetingValue
source · pub struct CustomTargetingValue {
pub name: String,
pub ad_tag_name: String,
pub display_name: String,
pub match_type: i32,
pub status: i32,
}
Expand description
The CustomTargetingValue
resource.
Fields§
§name: String
Identifier. The resource name of the CustomTargetingValue
.
Format:
networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}
ad_tag_name: String
Immutable. Name of the CustomTargetingValue
. Values can contain up to 40
characters each. You can use alphanumeric characters and symbols other than
the following: “, ’, =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ]. Values are
not data-specific; all values are treated as string. For example, instead
of using “age>=18 AND <=34”, try “18-34”
display_name: String
Optional. Descriptive name for the CustomTargetingValue
.
match_type: i32
Required. The way in which the CustomTargetingValue.name strings will be matched.
status: i32
Output only. Status of the CustomTargetingValue
.
Implementations§
source§impl CustomTargetingValue
impl CustomTargetingValue
sourcepub fn match_type(&self) -> CustomTargetingValueMatchType
pub fn match_type(&self) -> CustomTargetingValueMatchType
Returns the enum value of match_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_match_type(&mut self, value: CustomTargetingValueMatchType)
pub fn set_match_type(&mut self, value: CustomTargetingValueMatchType)
Sets match_type
to the provided enum value.
sourcepub fn status(&self) -> CustomTargetingValueStatus
pub fn status(&self) -> CustomTargetingValueStatus
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: CustomTargetingValueStatus)
pub fn set_status(&mut self, value: CustomTargetingValueStatus)
Sets status
to the provided enum value.
Trait Implementations§
source§impl Clone for CustomTargetingValue
impl Clone for CustomTargetingValue
source§fn clone(&self) -> CustomTargetingValue
fn clone(&self) -> CustomTargetingValue
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CustomTargetingValue
impl Debug for CustomTargetingValue
source§impl Default for CustomTargetingValue
impl Default for CustomTargetingValue
source§impl Message for CustomTargetingValue
impl Message for CustomTargetingValue
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 CustomTargetingValue
impl PartialEq for CustomTargetingValue
source§fn eq(&self, other: &CustomTargetingValue) -> bool
fn eq(&self, other: &CustomTargetingValue) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CustomTargetingValue
Auto Trait Implementations§
impl Freeze for CustomTargetingValue
impl RefUnwindSafe for CustomTargetingValue
impl Send for CustomTargetingValue
impl Sync for CustomTargetingValue
impl Unpin for CustomTargetingValue
impl UnwindSafe for CustomTargetingValue
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