pub struct InsertionOrderBudgetSegment {
pub budget_amount_micros: Option<i64>,
pub campaign_budget_id: Option<i64>,
pub date_range: Option<DateRange>,
pub description: Option<String>,
}
Expand description
Settings that control the budget of a single budget segment.
This type is not used in any activity, and only used as part of another schema.
Fields§
§budget_amount_micros: Option<i64>
Required. The budget amount the insertion order will spend for the given date_range. The amount is in micros. Must be greater than 0. For example, 500000000 represents 500 standard units of the currency.
campaign_budget_id: Option<i64>
The budget_id of the campaign budget that this insertion order budget segment is a part of.
date_range: Option<DateRange>
Required. The start and end date settings of the budget segment. They are resolved relative to the parent advertiser’s time zone. * When creating a new budget segment, both start_date
and end_date
must be in the future. * An existing budget segment 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.
description: Option<String>
The budget segment description. It can be used to enter Purchase Order information for each budget segment and have that information printed on the invoices. Must be UTF-8 encoded.
Trait Implementations§
Source§impl Clone for InsertionOrderBudgetSegment
impl Clone for InsertionOrderBudgetSegment
Source§fn clone(&self) -> InsertionOrderBudgetSegment
fn clone(&self) -> InsertionOrderBudgetSegment
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for InsertionOrderBudgetSegment
impl Debug for InsertionOrderBudgetSegment
Source§impl Default for InsertionOrderBudgetSegment
impl Default for InsertionOrderBudgetSegment
Source§fn default() -> InsertionOrderBudgetSegment
fn default() -> InsertionOrderBudgetSegment
Source§impl<'de> Deserialize<'de> for InsertionOrderBudgetSegment
impl<'de> Deserialize<'de> for InsertionOrderBudgetSegment
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>,
impl Part for InsertionOrderBudgetSegment
Auto Trait Implementations§
impl Freeze for InsertionOrderBudgetSegment
impl RefUnwindSafe for InsertionOrderBudgetSegment
impl Send for InsertionOrderBudgetSegment
impl Sync for InsertionOrderBudgetSegment
impl Unpin for InsertionOrderBudgetSegment
impl UnwindSafe for InsertionOrderBudgetSegment
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