pub struct Proposal {
Show 23 fields pub billed_buyer: Option<Buyer>, pub buyer: Option<Buyer>, pub buyer_contacts: Option<Vec<ContactInformation>>, pub buyer_private_data: Option<PrivateData>, pub dbm_advertiser_ids: Option<Vec<String>>, pub has_buyer_signed_off: Option<bool>, pub has_seller_signed_off: Option<bool>, pub inventory_source: Option<String>, pub is_renegotiating: Option<bool>, pub is_setup_complete: Option<bool>, pub kind: Option<String>, pub labels: Option<Vec<MarketplaceLabel>>, pub last_updater_or_commentor_role: Option<String>, pub name: Option<String>, pub negotiation_id: Option<String>, pub originator_role: Option<String>, pub private_auction_id: Option<String>, pub proposal_id: Option<String>, pub proposal_state: Option<String>, pub revision_number: Option<i64>, pub revision_time_ms: Option<i64>, pub seller: Option<Seller>, pub seller_contacts: Option<Vec<ContactInformation>>,
}
Expand description

Represents a proposal in the marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Each field in a proposal can have one of the following setting:

(readonly) - It is an error to try and set this field. (buyer-readonly) - Only the seller can set this field. (seller-readonly) - Only the buyer can set this field. (updatable) - The field is updatable at all times by either buyer or the seller.

§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§

§billed_buyer: Option<Buyer>

Reference to the buyer that will get billed for this proposal. (readonly)

§buyer: Option<Buyer>

Reference to the buyer on the proposal. (readonly, except on create)

§buyer_contacts: Option<Vec<ContactInformation>>

Optional contact information of the buyer. (seller-readonly)

§buyer_private_data: Option<PrivateData>

Private data for buyer. (hidden from seller).

§dbm_advertiser_ids: Option<Vec<String>>

IDs of DBM advertisers permission to this proposal.

§has_buyer_signed_off: Option<bool>

When an proposal is in an accepted state, indicates whether the buyer has signed off. Once both sides have signed off on a deal, the proposal can be finalized by the seller. (seller-readonly)

§has_seller_signed_off: Option<bool>

When an proposal is in an accepted state, indicates whether the buyer has signed off Once both sides have signed off on a deal, the proposal can be finalized by the seller. (buyer-readonly)

§inventory_source: Option<String>

What exchange will provide this inventory (readonly, except on create).

§is_renegotiating: Option<bool>

True if the proposal is being renegotiated (readonly).

§is_setup_complete: Option<bool>

True, if the buyside inventory setup is complete for this proposal. (readonly, except via OrderSetupCompleted action) Deprecated in favor of deal level setup complete flag.

§kind: Option<String>

Identifies what kind of resource this is. Value: the fixed string “adexchangebuyer#proposal”.

§labels: Option<Vec<MarketplaceLabel>>

List of labels associated with the proposal. (readonly)

§last_updater_or_commentor_role: Option<String>

The role of the last user that either updated the proposal or left a comment. (readonly)

§name: Option<String>

The name for the proposal (updatable)

§negotiation_id: Option<String>

Optional negotiation id if this proposal is a preferred deal proposal.

§originator_role: Option<String>

Indicates whether the buyer/seller created the proposal.(readonly)

§private_auction_id: Option<String>

Optional private auction id if this proposal is a private auction proposal.

§proposal_id: Option<String>

The unique id of the proposal. (readonly).

§proposal_state: Option<String>

The current state of the proposal. (readonly)

§revision_number: Option<i64>

The revision number for the proposal (readonly).

§revision_time_ms: Option<i64>

The time (ms since epoch) when the proposal was last revised (readonly).

§seller: Option<Seller>

Reference to the seller on the proposal. (readonly, except on create)

§seller_contacts: Option<Vec<ContactInformation>>

Optional contact information of the seller (buyer-readonly).

Trait Implementations§

source§

impl Clone for Proposal

source§

fn clone(&self) -> Proposal

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 Proposal

source§

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

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

impl Default for Proposal

source§

fn default() -> Proposal

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

impl<'de> Deserialize<'de> for Proposal

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 Proposal

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 Proposal

source§

impl Resource for Proposal

source§

impl ResponseResult for Proposal

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>,