pub struct DayPartTargeting {
pub days_of_week: Option<Vec<String>>,
pub hours_of_day: Option<Vec<i32>>,
pub user_local_time: Option<bool>,
}
Expand description
Day Part Targeting.
This type is not used in any activity, and only used as part of another schema.
Fields§
§days_of_week: Option<Vec<String>>
Days of the week when the ad will serve.
Acceptable values are:
- “SUNDAY”
- “MONDAY”
- “TUESDAY”
- “WEDNESDAY”
- “THURSDAY”
- “FRIDAY”
- “SATURDAY”
hours_of_day: Option<Vec<i32>>
Hours of the day when the ad will serve, where 0 is midnight to 1 AM and 23 is 11 PM to midnight. Can be specified with days of week, in which case the ad would serve during these hours on the specified days. For example if Monday, Wednesday, Friday are the days of week specified and 9-10am, 3-5pm (hours 9, 15, and 16) is specified, the ad would serve Monday, Wednesdays, and Fridays at 9-10am and 3-5pm. Acceptable values are 0 to 23, inclusive.
user_local_time: Option<bool>
Whether or not to use the user’s local time. If false, the America/New York time zone applies.
Trait Implementations§
Source§impl Clone for DayPartTargeting
impl Clone for DayPartTargeting
Source§fn clone(&self) -> DayPartTargeting
fn clone(&self) -> DayPartTargeting
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DayPartTargeting
impl Debug for DayPartTargeting
Source§impl Default for DayPartTargeting
impl Default for DayPartTargeting
Source§fn default() -> DayPartTargeting
fn default() -> DayPartTargeting
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DayPartTargeting
impl<'de> Deserialize<'de> for DayPartTargeting
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for DayPartTargeting
impl Serialize for DayPartTargeting
impl Part for DayPartTargeting
Auto Trait Implementations§
impl Freeze for DayPartTargeting
impl RefUnwindSafe for DayPartTargeting
impl Send for DayPartTargeting
impl Sync for DayPartTargeting
impl Unpin for DayPartTargeting
impl UnwindSafe for DayPartTargeting
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
Mutably borrows from an owned value. Read more
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more