[−][src]Struct openrtb2::BidResponse
4.2.1 Object: BidResponse
This object is the top-level bid response object (i.e., the unnamed outer JSON object). The id attribute is a reflection of the bid request ID for logging purposes. Similarly, bidid is an optional response tracking ID for bidders. If specified, it can be included in the subsequent win notice call if the bidder wins. At least one seatbid object is required, which contains at least one bid for an impression. Other attributes are optional.
To express a “no-bid”, the options are to return an empty response with HTTP 204. Alternately if the bidder wishes to convey to the exchange a reason for not bidding, just a BidResponse object is returned with a reason code in the nbr attribute.
Fields
id: Cow<'a, str>
string; required ID of the bid request to which this is a response.
seatbid: Option<Vec<SeatBid<'a>>>
object array Array of seatbid objects; 1+ required if a bid is to be made.
bidid: Option<Cow<'a, str>>
string Bidder generated response ID to assist with logging/tracking.
cur: Cow<'a, str>
string; default “USD” Bid currency using ISO-4217 alpha codes.
customdata: Option<Cow<'a, str>>
string Optional feature to allow a bidder to set data in the exchange’s cookie. The string must be in base85 cookie safe characters and be in any format. Proper JSON encoding must be used to include “escaped” quotation marks.
nbr: Option<NoBidReason>
integer Reason for not bidding. Refer to List 5.24.
ext: Option<Object<'a>>
object Placeholder for bidder-specific extensions to OpenRTB.
Trait Implementations
impl<'a> Clone for BidResponse<'a>
[src]
fn clone(&self) -> BidResponse<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for BidResponse<'a>
[src]
impl<'a> Default for BidResponse<'a>
[src]
fn default() -> BidResponse<'a>
[src]
impl<'de: 'a, 'a> Deserialize<'de> for BidResponse<'a>
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<'a> PartialEq<BidResponse<'a>> for BidResponse<'a>
[src]
fn eq(&self, other: &BidResponse<'a>) -> bool
[src]
fn ne(&self, other: &BidResponse<'a>) -> bool
[src]
impl<'a> Serialize for BidResponse<'a>
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'a> StructuralPartialEq for BidResponse<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for BidResponse<'a>
impl<'a> Send for BidResponse<'a>
impl<'a> Sync for BidResponse<'a>
impl<'a> Unpin for BidResponse<'a>
impl<'a> UnwindSafe for BidResponse<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DefaultExt for T where
T: Default + PartialEq<T>,
[src]
T: Default + PartialEq<T>,
pub fn is_default(&self) -> bool
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,