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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for CustomizerAttribute
impl PartialEq for CustomizerAttribute
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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