Struct google_api_proto::google::ads::googleads::v17::common::CriterionCategoryChannelAvailability
source · pub struct CriterionCategoryChannelAvailability {
pub availability_mode: i32,
pub advertising_channel_type: i32,
pub advertising_channel_sub_type: Vec<i32>,
pub include_default_channel_sub_type: Option<bool>,
}
Expand description
Information of advertising channel type and subtypes a category is available in.
Fields§
§availability_mode: i32
Format of the channel availability. Can be ALL_CHANNELS (the rest of the fields will not be set), CHANNEL_TYPE (only advertising_channel_type type will be set, the category is available to all sub types under it) or CHANNEL_TYPE_AND_SUBTYPES (advertising_channel_type, advertising_channel_sub_type, and include_default_channel_sub_type will all be set).
advertising_channel_type: i32
Channel type the category is available to.
advertising_channel_sub_type: Vec<i32>
Channel subtypes under the channel type the category is available to.
include_default_channel_sub_type: Option<bool>
Whether default channel sub type is included. For example, advertising_channel_type being DISPLAY and include_default_channel_sub_type being false means that the default display campaign where channel sub type is not set is not included in this availability configuration.
Implementations§
source§impl CriterionCategoryChannelAvailability
impl CriterionCategoryChannelAvailability
sourcepub fn availability_mode(&self) -> CriterionCategoryChannelAvailabilityMode
pub fn availability_mode(&self) -> CriterionCategoryChannelAvailabilityMode
Returns the enum value of availability_mode
, or the default if the field is set to an invalid enum value.
sourcepub fn set_availability_mode(
&mut self,
value: CriterionCategoryChannelAvailabilityMode,
)
pub fn set_availability_mode( &mut self, value: CriterionCategoryChannelAvailabilityMode, )
Sets availability_mode
to the provided enum value.
sourcepub fn advertising_channel_type(&self) -> AdvertisingChannelType
pub fn advertising_channel_type(&self) -> AdvertisingChannelType
Returns the enum value of advertising_channel_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_advertising_channel_type(&mut self, value: AdvertisingChannelType)
pub fn set_advertising_channel_type(&mut self, value: AdvertisingChannelType)
Sets advertising_channel_type
to the provided enum value.
sourcepub fn advertising_channel_sub_type(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<AdvertisingChannelSubType>>
pub fn advertising_channel_sub_type( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<AdvertisingChannelSubType>>
Returns an iterator which yields the valid enum values contained in advertising_channel_sub_type
.
sourcepub fn push_advertising_channel_sub_type(
&mut self,
value: AdvertisingChannelSubType,
)
pub fn push_advertising_channel_sub_type( &mut self, value: AdvertisingChannelSubType, )
Appends the provided enum value to advertising_channel_sub_type
.
sourcepub fn include_default_channel_sub_type(&self) -> bool
pub fn include_default_channel_sub_type(&self) -> bool
Returns the value of include_default_channel_sub_type
, or the default value if include_default_channel_sub_type
is unset.
Trait Implementations§
source§impl Clone for CriterionCategoryChannelAvailability
impl Clone for CriterionCategoryChannelAvailability
source§fn clone(&self) -> CriterionCategoryChannelAvailability
fn clone(&self) -> CriterionCategoryChannelAvailability
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for CriterionCategoryChannelAvailability
impl Message for CriterionCategoryChannelAvailability
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 CriterionCategoryChannelAvailability
impl PartialEq for CriterionCategoryChannelAvailability
source§fn eq(&self, other: &CriterionCategoryChannelAvailability) -> bool
fn eq(&self, other: &CriterionCategoryChannelAvailability) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CriterionCategoryChannelAvailability
Auto Trait Implementations§
impl Freeze for CriterionCategoryChannelAvailability
impl RefUnwindSafe for CriterionCategoryChannelAvailability
impl Send for CriterionCategoryChannelAvailability
impl Sync for CriterionCategoryChannelAvailability
impl Unpin for CriterionCategoryChannelAvailability
impl UnwindSafe for CriterionCategoryChannelAvailability
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