Struct google_api_proto::google::ads::googleads::v15::common::FrequencyCapKey
source · pub struct FrequencyCapKey {
pub level: i32,
pub event_type: i32,
pub time_unit: i32,
pub time_length: Option<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: Option<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.
sourcepub fn time_length(&self) -> i32
pub fn time_length(&self) -> i32
Returns the value of time_length
, or the default value if time_length
is unset.
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(&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 FrequencyCapKey
impl PartialEq for FrequencyCapKey
source§fn eq(&self, other: &FrequencyCapKey) -> bool
fn eq(&self, other: &FrequencyCapKey) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy 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
§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