pub struct LineItemFlight {
pub date_range: Option<DateRange>,
pub flight_date_type: Option<String>,
pub trigger_id: Option<i64>,
}
Expand description
Settings that control the active duration of a line item.
This type is not used in any activity, and only used as part of another schema.
Fields§
§date_range: Option<DateRange>
The flight start and end dates of the line item. They are resolved relative to the parent advertiser’s time zone. * Required when flight_date_type is LINE_ITEM_FLIGHT_DATE_TYPE_CUSTOM
. Output only otherwise. * When creating a new flight, both start_date
and end_date
must be in the future. * An existing flight with a start_date
in the past has a mutable end_date
but an immutable start_date
. * end_date
must be the start_date
or later, both before the year 2037.
flight_date_type: Option<String>
Required. The type of the line item’s flight dates.
trigger_id: Option<i64>
The ID of the manual trigger associated with the line item. * Required when flight_date_type is LINE_ITEM_FLIGHT_DATE_TYPE_TRIGGER
. Must not be set otherwise. * When set, the line item’s flight dates are inherited from its parent insertion order. * Active line items will spend when the selected trigger is activated within the parent insertion order’s flight dates. Warning: Line Items using manual triggers no longer serve in Display & Video 360. This field will sunset on August 1, 2023. Read our feature deprecation announcement for more information.
Trait Implementations§
Source§impl Clone for LineItemFlight
impl Clone for LineItemFlight
Source§fn clone(&self) -> LineItemFlight
fn clone(&self) -> LineItemFlight
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for LineItemFlight
impl Debug for LineItemFlight
Source§impl Default for LineItemFlight
impl Default for LineItemFlight
Source§fn default() -> LineItemFlight
fn default() -> LineItemFlight
Source§impl<'de> Deserialize<'de> for LineItemFlight
impl<'de> Deserialize<'de> for LineItemFlight
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>,
Source§impl Serialize for LineItemFlight
impl Serialize for LineItemFlight
impl Part for LineItemFlight
Auto Trait Implementations§
impl Freeze for LineItemFlight
impl RefUnwindSafe for LineItemFlight
impl Send for LineItemFlight
impl Sync for LineItemFlight
impl Unpin for LineItemFlight
impl UnwindSafe for LineItemFlight
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
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>
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>
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