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).

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

source§

fn clone(&self) -> InventorySource

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for InventorySource

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for InventorySource

source§

fn default() -> InventorySource

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for InventorySource

source§

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 InventorySource

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl RequestValue for InventorySource

source§

impl Resource for InventorySource

source§

impl ResponseResult for InventorySource

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,