Struct google_api_proto::google::ads::admanager::v1::CustomField
source · pub struct CustomField {
pub name: String,
pub custom_field_id: i64,
pub display_name: String,
pub description: String,
pub status: i32,
pub entity_type: i32,
pub data_type: i32,
pub visibility: i32,
pub options: Vec<CustomFieldOption>,
}Expand description
The CustomField resource.
Fields§
§name: StringIdentifier. The resource name of the CustomField.
Format: networks/{network_code}/customFields/{custom_field_id}
custom_field_id: i64Output only. CustomField ID.
display_name: StringRequired. The display name of the CustomField.
This value has a maximum length of 127 characters.
description: StringOptional. The description of the CustomField.
This value has a maximum length of 511 characters.
status: i32Output only. The status of the CustomField.
entity_type: i32Required. The type of entity the CustomField can be applied to.
data_type: i32Required. The data type of the CustomField.
visibility: i32Required. The visibility of the CustomField.
options: Vec<CustomFieldOption>Optional. The drop-down options for the CustomField.
Only applicable for CustomField with the drop-down data type.
Implementations§
source§impl CustomField
impl CustomField
sourcepub fn status(&self) -> CustomFieldStatus
pub fn status(&self) -> CustomFieldStatus
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: CustomFieldStatus)
pub fn set_status(&mut self, value: CustomFieldStatus)
Sets status to the provided enum value.
sourcepub fn entity_type(&self) -> CustomFieldEntityType
pub fn entity_type(&self) -> CustomFieldEntityType
Returns the enum value of entity_type, or the default if the field is set to an invalid enum value.
sourcepub fn set_entity_type(&mut self, value: CustomFieldEntityType)
pub fn set_entity_type(&mut self, value: CustomFieldEntityType)
Sets entity_type to the provided enum value.
sourcepub fn data_type(&self) -> CustomFieldDataType
pub fn data_type(&self) -> CustomFieldDataType
Returns the enum value of data_type, or the default if the field is set to an invalid enum value.
sourcepub fn set_data_type(&mut self, value: CustomFieldDataType)
pub fn set_data_type(&mut self, value: CustomFieldDataType)
Sets data_type to the provided enum value.
sourcepub fn visibility(&self) -> CustomFieldVisibility
pub fn visibility(&self) -> CustomFieldVisibility
Returns the enum value of visibility, or the default if the field is set to an invalid enum value.
sourcepub fn set_visibility(&mut self, value: CustomFieldVisibility)
pub fn set_visibility(&mut self, value: CustomFieldVisibility)
Sets visibility to the provided enum value.
Trait Implementations§
source§impl Clone for CustomField
impl Clone for CustomField
source§fn clone(&self) -> CustomField
fn clone(&self) -> CustomField
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CustomField
impl Debug for CustomField
source§impl Default for CustomField
impl Default for CustomField
source§impl Message for CustomField
impl Message for CustomField
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 CustomField
impl PartialEq for CustomField
source§fn eq(&self, other: &CustomField) -> bool
fn eq(&self, other: &CustomField) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CustomField
Auto Trait Implementations§
impl Freeze for CustomField
impl RefUnwindSafe for CustomField
impl Send for CustomField
impl Sync for CustomField
impl Unpin for CustomField
impl UnwindSafe for CustomField
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