[][src]Struct openrtb_native1::request::Video

pub struct Video<'a> {
    pub mimes: Vec<Cow<'a, str>>,
    pub minduration: i32,
    pub maxduration: i32,
    pub protocols: Vec<Protocol>,
    pub ext: Option<Object<'a>>,
}

4.5 Video Request Object

The video object to be used for all video elements supported in the Native Ad. This corresponds to the Video object of OpenRTB. Exchange implementers can impose their own specific restrictions. Here are the required attributes of the Video Object. For optional attributes please refer to OpenRTB.

Fields

mimes: Vec<Cow<'a, str>>

required; array of string; - Content MIME types supported. Popular MIME types include, but are not limited to “video/x-ms- wmv” for Windows Media, and “video/x-flv” for Flash Video, or “video/mp4”. Note that native frequently does not support flash.

minduration: i32

required; integer; - Minimum video ad duration in seconds.

maxduration: i32

required; integer; - Maximum video ad duration in seconds.

protocols: Vec<Protocol>

required; array of integer; - An array of video protocols the publisher can accept in the bid response. See OpenRTB Table ‘Video Bid Response Protocols’ for a list of possible values.

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 Video<'a>[src]

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

impl<'a> Default for Video<'a>[src]

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

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

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for Video<'a>

impl<'a> Send for Video<'a>

impl<'a> Sync for Video<'a>

impl<'a> Unpin for Video<'a>

impl<'a> UnwindSafe for Video<'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> DefaultExt for T where
    T: Default + PartialEq<T>, 
[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.