[−][src]Struct google_displayvideo1::FrequencyCap
Settings that control the number of times a user may be shown with the same ad during a given time period.
This type is not used in any activity, and only used as part of another schema.
Fields
time_unit: Option<String>
The time unit in which the frequency cap will be applied.
Applicable when unlimited is false
.
time_unit_count: Option<i32>
The number of time_unit the frequency cap will last.
Applicable when unlimited is false
.
The following restrictions apply based on the value of
time_unit:
TIME_UNIT_LIFETIME
- this field is output only and will default to 1TIME_UNIT_MONTHS
- must be between 1 and 2TIME_UNIT_WEEKS
- must be between 1 and 4TIME_UNIT_DAYS
- must be between 1 and 6TIME_UNIT_HOURS
- must be between 1 and 23TIME_UNIT_MINUTES
- must be between 1 and 59
unlimited: Option<bool>
Whether unlimited frequency capping is applied. When this field is set to
true
, the remaining frequency cap fields are not applicable.
max_impressions: Option<i32>
The maximum number of times a user may be shown with the same ad during this period. Must be greater than 0.
Applicable when unlimited is false
.
Trait Implementations
impl Clone for FrequencyCap
[src]
fn clone(&self) -> FrequencyCap
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for FrequencyCap
[src]
impl Default for FrequencyCap
[src]
fn default() -> FrequencyCap
[src]
impl<'de> Deserialize<'de> for FrequencyCap
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Part for FrequencyCap
[src]
impl Serialize for FrequencyCap
[src]
Auto Trait Implementations
impl RefUnwindSafe for FrequencyCap
impl Send for FrequencyCap
impl Sync for FrequencyCap
impl Unpin for FrequencyCap
impl UnwindSafe for FrequencyCap
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,