pub struct FrequencyCapKey {
pub level: i32,
pub event_type: i32,
pub time_unit: i32,
pub time_length: i32,
}
Expand description
A group of fields used as keys for a frequency cap. There can be no more than one frequency cap with the same key.
Fields§
§level: i32
The level on which the cap is to be applied (for example, ad group ad, ad group). The cap is applied to all the entities of this level.
event_type: i32
The type of event that the cap applies to (for example, impression).
time_unit: i32
Unit of time the cap is defined at (for example, day, week).
time_length: i32
Number of time units the cap lasts.
Implementations§
Source§impl FrequencyCapKey
impl FrequencyCapKey
Sourcepub fn level(&self) -> FrequencyCapLevel
pub fn level(&self) -> FrequencyCapLevel
Returns the enum value of level
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_level(&mut self, value: FrequencyCapLevel)
pub fn set_level(&mut self, value: FrequencyCapLevel)
Sets level
to the provided enum value.
Sourcepub fn time_unit(&self) -> FrequencyCapTimeUnit
pub fn time_unit(&self) -> FrequencyCapTimeUnit
Returns the enum value of time_unit
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_time_unit(&mut self, value: FrequencyCapTimeUnit)
pub fn set_time_unit(&mut self, value: FrequencyCapTimeUnit)
Sets time_unit
to the provided enum value.
Sourcepub fn event_type(&self) -> FrequencyCapEventType
pub fn event_type(&self) -> FrequencyCapEventType
Returns the enum value of event_type
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_event_type(&mut self, value: FrequencyCapEventType)
pub fn set_event_type(&mut self, value: FrequencyCapEventType)
Sets event_type
to the provided enum value.
Trait Implementations§
Source§impl Clone for FrequencyCapKey
impl Clone for FrequencyCapKey
Source§fn clone(&self) -> FrequencyCapKey
fn clone(&self) -> FrequencyCapKey
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for FrequencyCapKey
impl Debug for FrequencyCapKey
Source§impl Default for FrequencyCapKey
impl Default for FrequencyCapKey
Source§impl Message for FrequencyCapKey
impl Message for FrequencyCapKey
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 FrequencyCapKey
impl PartialEq for FrequencyCapKey
impl StructuralPartialEq for FrequencyCapKey
Auto Trait Implementations§
impl Freeze for FrequencyCapKey
impl RefUnwindSafe for FrequencyCapKey
impl Send for FrequencyCapKey
impl Sync for FrequencyCapKey
impl Unpin for FrequencyCapKey
impl UnwindSafe for FrequencyCapKey
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