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: 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: 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
.
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<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 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
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