[][src]Struct openrtb_native1::response::Title

pub struct Title<'a> {
    pub text: Cow<'a, str>,
    pub len: Option<i32>,
    pub ext: Option<Object<'a>>,
}

5.3 Title Response Object

Corresponds to the Title Object in the request, with the value filled in. If using assetsurl or dcourl response rather than embedded asset response, it is recommended that three title objects be provided, the length of each of which is less than or equal to the three recommended maximum title lengths (25,90,140).

Fields

text: Cow<'a, str>

required; string; - The text associated with the text element.

len: Option<i32>

optional; integer; - The length of the title being provided. Required if using assetsurl/dcourl representation, optional if using embedded asset representation.

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

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

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

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

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

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for Title<'a>

impl<'a> Send for Title<'a>

impl<'a> Sync for Title<'a>

impl<'a> Unpin for Title<'a>

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