Struct googapis::google::ads::googleads::v7::common::FrequencyCapKey [−][src]
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 (e.g. 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 (e.g. impression).
time_unit: i32
Unit of time the cap is defined at (e.g. day, week).
time_length: Option<i32>
Number of time units the cap lasts.
Implementations
Returns the enum value of level
, or the default if the field is set to an invalid enum value.
Sets level
to the provided enum value.
Returns the enum value of time_unit
, or the default if the field is set to an invalid enum value.
Sets time_unit
to the provided enum value.
Returns the enum value of event_type
, or the default if the field is set to an invalid enum value.
Sets event_type
to the provided enum value.
Returns the value of time_length
, or the default value if time_length
is unset.
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for FrequencyCapKey
impl Send for FrequencyCapKey
impl Sync for FrequencyCapKey
impl Unpin for FrequencyCapKey
impl UnwindSafe for FrequencyCapKey
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more