pub struct InventorySource {Show 19 fields
pub commitment: Option<String>,
pub creative_configs: Option<Vec<CreativeConfig>>,
pub deal_id: Option<String>,
pub delivery_method: Option<String>,
pub display_name: Option<String>,
pub exchange: Option<String>,
pub guaranteed_order_id: Option<String>,
pub inventory_source_id: Option<i64>,
pub inventory_source_product_type: Option<String>,
pub inventory_source_type: Option<String>,
pub name: Option<String>,
pub publisher_name: Option<String>,
pub rate_details: Option<RateDetails>,
pub read_advertiser_ids: Option<Vec<i64>>,
pub read_partner_ids: Option<Vec<i64>>,
pub read_write_accessors: Option<InventorySourceAccessors>,
pub status: Option<InventorySourceStatus>,
pub time_range: Option<TimeRange>,
pub update_time: Option<DateTime<Utc>>,
}
Expand description
An inventory source.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- create inventory sources (request|response)
- edit inventory source read write accessors inventory sources (none)
- get inventory sources (response)
- list inventory sources (none)
- patch inventory sources (request|response)
Fields§
§commitment: Option<String>
Whether the inventory source has a guaranteed or non-guaranteed delivery.
creative_configs: Option<Vec<CreativeConfig>>
The creative requirements of the inventory source. Not applicable for auction packages.
deal_id: Option<String>
The ID in the exchange space that uniquely identifies the inventory source. Must be unique across buyers within each exchange but not necessarily unique across exchanges.
delivery_method: Option<String>
The delivery method of the inventory source. * For non-guaranteed inventory sources, the only acceptable value is INVENTORY_SOURCE_DELIVERY_METHOD_PROGRAMMATIC
. * For guaranteed inventory sources, acceptable values are INVENTORY_SOURCE_DELIVERY_METHOD_TAG
and INVENTORY_SOURCE_DELIVERY_METHOD_PROGRAMMATIC
.
display_name: Option<String>
The display name of the inventory source. Must be UTF-8 encoded with a maximum size of 240 bytes.
exchange: Option<String>
The exchange to which the inventory source belongs.
guaranteed_order_id: Option<String>
Immutable. The ID of the guaranteed order that this inventory source belongs to. Only applicable when commitment is INVENTORY_SOURCE_COMMITMENT_GUARANTEED
.
inventory_source_id: Option<i64>
Output only. The unique ID of the inventory source. Assigned by the system.
inventory_source_product_type: Option<String>
Output only. The product type of the inventory source, denoting the way through which it sells inventory.
inventory_source_type: Option<String>
Denotes the type of the inventory source.
name: Option<String>
Output only. The resource name of the inventory source.
publisher_name: Option<String>
The publisher/seller name of the inventory source.
rate_details: Option<RateDetails>
Required. The rate details of the inventory source.
read_advertiser_ids: Option<Vec<i64>>
Output only. The IDs of advertisers with read-only access to the inventory source.
read_partner_ids: Option<Vec<i64>>
Output only. The IDs of partners with read-only access to the inventory source. All advertisers of partners in this field inherit read-only access to the inventory source.
read_write_accessors: Option<InventorySourceAccessors>
The partner or advertisers that have read/write access to the inventory source. Output only when commitment is INVENTORY_SOURCE_COMMITMENT_GUARANTEED
, in which case the read/write accessors are inherited from the parent guaranteed order. Required when commitment is INVENTORY_SOURCE_COMMITMENT_NON_GUARANTEED
. If commitment is INVENTORY_SOURCE_COMMITMENT_NON_GUARANTEED
and a partner is set in this field, all advertisers under this partner will automatically have read-only access to the inventory source. These advertisers will not be included in read_advertiser_ids.
status: Option<InventorySourceStatus>
The status settings of the inventory source.
time_range: Option<TimeRange>
The time range when this inventory source starts and stops serving.
update_time: Option<DateTime<Utc>>
Output only. The timestamp when the inventory source was last updated. Assigned by the system.
Trait Implementations§
Source§impl Clone for InventorySource
impl Clone for InventorySource
Source§fn clone(&self) -> InventorySource
fn clone(&self) -> InventorySource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for InventorySource
impl Debug for InventorySource
Source§impl Default for InventorySource
impl Default for InventorySource
Source§fn default() -> InventorySource
fn default() -> InventorySource
Source§impl<'de> Deserialize<'de> for InventorySource
impl<'de> Deserialize<'de> for InventorySource
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 InventorySource
impl Serialize for InventorySource
impl RequestValue for InventorySource
impl Resource for InventorySource
impl ResponseResult for InventorySource
Auto Trait Implementations§
impl Freeze for InventorySource
impl RefUnwindSafe for InventorySource
impl Send for InventorySource
impl Sync for InventorySource
impl Unpin for InventorySource
impl UnwindSafe for InventorySource
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