Struct gapi_grpc::google::ads::googleads::v4::common::FrequencyCapKey[][src]

pub struct FrequencyCapKey {
    pub level: i32,
    pub event_type: i32,
    pub time_unit: i32,
    pub time_length: Option<i32>,
}

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

impl FrequencyCapKey[src]

pub fn level(&self) -> FrequencyCapLevel[src]

Returns the enum value of level, or the default if the field is set to an invalid enum value.

pub fn set_level(&mut self, value: FrequencyCapLevel)[src]

Sets level to the provided enum value.

pub fn time_unit(&self) -> FrequencyCapTimeUnit[src]

Returns the enum value of time_unit, or the default if the field is set to an invalid enum value.

pub fn set_time_unit(&mut self, value: FrequencyCapTimeUnit)[src]

Sets time_unit to the provided enum value.

pub fn event_type(&self) -> FrequencyCapEventType[src]

Returns the enum value of event_type, or the default if the field is set to an invalid enum value.

pub fn set_event_type(&mut self, value: FrequencyCapEventType)[src]

Sets event_type to the provided enum value.

Trait Implementations

impl Clone for FrequencyCapKey[src]

impl Debug for FrequencyCapKey[src]

impl Default for FrequencyCapKey[src]

impl Message for FrequencyCapKey[src]

impl PartialEq<FrequencyCapKey> for FrequencyCapKey[src]

impl StructuralPartialEq for FrequencyCapKey[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]