[][src]Enum openrtb_native1::response::AssetValue

pub enum AssetValue<'a> {
    Title(Title<'a>),
    Img(Image<'a>),
    Video(Video<'a>),
    Data(Data<'a>),
}

5.3 Title, 5.4 Image, 5.5 Data, 5.6 Video

Variants

Title(Title<'a>)

optional; object; - Title object for title assets. See TitleObject definition.

Img(Image<'a>)

optional; object; - Image object for image assets. See ImageObject definition.

Video(Video<'a>)

optional; object; - Video object for video assets. See Video response object definition. Note that in-stream video ads are not part of Native. Native ads may contain a video as the ad creative itself.

Data(Data<'a>)

optional; object; - Data object for ratings, prices etc.

Implementations

impl<'a> AssetValue<'a>[src]

pub fn is_title(&self) -> bool[src]

pub fn as_title(&self) -> Option<&Title<'_>>[src]

pub fn as_title_mut(&'a mut self) -> Option<&'a mut Title<'_>>[src]

pub fn is_image(&self) -> bool[src]

pub fn as_image(&self) -> Option<&Image<'_>>[src]

pub fn as_image_mut(&'a mut self) -> Option<&'a mut Image<'_>>[src]

pub fn is_video(&self) -> bool[src]

pub fn as_video(&self) -> Option<&Video<'_>>[src]

pub fn as_video_mut(&'a mut self) -> Option<&'a mut Video<'_>>[src]

pub fn is_data(&self) -> bool[src]

pub fn as_data(&self) -> Option<&Data<'_>>[src]

pub fn as_data_mut(&'a mut self) -> Option<&'a mut Data<'_>>[src]

Trait Implementations

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

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

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

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

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for AssetValue<'a>

impl<'a> Send for AssetValue<'a>

impl<'a> Sync for AssetValue<'a>

impl<'a> Unpin for AssetValue<'a>

impl<'a> UnwindSafe for AssetValue<'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.