[][src]Struct openrtb_native1::request::Data

pub struct Data<'a> {
    pub type: DataAssetType,
    pub len: Option<i32>,
    pub ext: Option<Object<'a>>,
}

4.6 Data Request Object

The Data Object is to be used for all non-core elements of the native unit such as Brand Name, Ratings, Review Count, Stars, Download count, descriptions etc. It is also generic for future native elements not contemplated at the time of the writing of this document. In some cases, additional recommendations are also included in the Data Asset Types table.

Fields

type: DataAssetType

required; integer; - Type ID of the element supported by the publisher. The publisher can display this information in an appropriate format. See Data Asset Types table for commonly used examples.

len: Option<i32>

optional; integer; - Maximum length of the text in the element’s response.

ext: Option<Object<'a>>

optional; object; - This object is a placeholder that may contain custom JSON agreed to by the parties to support flexibility beyond the standard defined in this specification.

Trait Implementations

impl<'a> Clone for Data<'a>[src]

impl<'a> Debug for Data<'a>[src]

impl<'de: 'a, 'a> Deserialize<'de> for Data<'a>[src]

impl<'a> PartialEq<Data<'a>> for Data<'a>[src]

impl<'a> Serialize for Data<'a>[src]

impl<'a> StructuralPartialEq for Data<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Data<'a>

impl<'a> Send for Data<'a>

impl<'a> Sync for Data<'a>

impl<'a> Unpin for Data<'a>

impl<'a> UnwindSafe for Data<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.