Struct google_api_proto::google::ads::googleads::v15::resources::CustomizerAttribute
source · pub struct CustomizerAttribute {
pub resource_name: String,
pub id: i64,
pub name: String,
pub type: i32,
pub status: i32,
}
Expand description
A customizer attribute. Use CustomerCustomizer, CampaignCustomizer, AdGroupCustomizer, or AdGroupCriterionCustomizer to associate a customizer attribute and set its value at the customer, campaign, ad group, or ad group criterion level, respectively.
Fields§
§resource_name: String
Immutable. The resource name of the customizer attribute. Customizer Attribute resource names have the form:
customers/{customer_id}/customizerAttributes/{customizer_attribute_id}
id: i64
Output only. The ID of the customizer attribute.
name: String
Required. Immutable. Name of the customizer attribute. Required. It must have a minimum length of 1 and maximum length of 40. Name of an enabled customizer attribute must be unique (case insensitive).
type: i32
Immutable. The type of the customizer attribute.
status: i32
Output only. The status of the customizer attribute.
Implementations§
source§impl CustomizerAttribute
impl CustomizerAttribute
sourcepub fn type(&self) -> CustomizerAttributeType
pub fn type(&self) -> CustomizerAttributeType
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_type(&mut self, value: CustomizerAttributeType)
pub fn set_type(&mut self, value: CustomizerAttributeType)
Sets type
to the provided enum value.
sourcepub fn status(&self) -> CustomizerAttributeStatus
pub fn status(&self) -> CustomizerAttributeStatus
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: CustomizerAttributeStatus)
pub fn set_status(&mut self, value: CustomizerAttributeStatus)
Sets status
to the provided enum value.
Trait Implementations§
source§impl Clone for CustomizerAttribute
impl Clone for CustomizerAttribute
source§fn clone(&self) -> CustomizerAttribute
fn clone(&self) -> CustomizerAttribute
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CustomizerAttribute
impl Debug for CustomizerAttribute
source§impl Default for CustomizerAttribute
impl Default for CustomizerAttribute
source§impl Message for CustomizerAttribute
impl Message for CustomizerAttribute
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 CustomizerAttribute
impl PartialEq for CustomizerAttribute
source§fn eq(&self, other: &CustomizerAttribute) -> bool
fn eq(&self, other: &CustomizerAttribute) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CustomizerAttribute
Auto Trait Implementations§
impl Freeze for CustomizerAttribute
impl RefUnwindSafe for CustomizerAttribute
impl Send for CustomizerAttribute
impl Sync for CustomizerAttribute
impl Unpin for CustomizerAttribute
impl UnwindSafe for CustomizerAttribute
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