[][src]Struct openrtb2::App

pub struct App<'a> {
    pub id: Option<Cow<'a, str>>,
    pub name: Option<Cow<'a, str>>,
    pub bundle: Option<Cow<'a, str>>,
    pub domain: Option<Cow<'a, str>>,
    pub storeurl: Option<Cow<'a, str>>,
    pub cat: Option<Vec<ContentCategory>>,
    pub sectioncat: Option<Vec<ContentCategory>>,
    pub pagecat: Option<Vec<ContentCategory>>,
    pub ver: Option<Cow<'a, str>>,
    pub privacypolicy: Option<bool>,
    pub paid: Option<bool>,
    pub publisher: Option<Publisher<'a>>,
    pub content: Option<Content<'a>>,
    pub keywords: Option<Cow<'a, str>>,
    pub ext: Option<Object<'a>>,
}

3.2.14 Object: App

This object should be included if the ad supported content is a non-browser application (typically in mobile) as opposed to a website. A bid request must not contain both an App and a Site object. At a minimum, it is useful to provide an App ID or bundle, but this is not strictly required.

Fields

id: Option<Cow<'a, str>>

string; recommended Exchange-specific app ID.

name: Option<Cow<'a, str>>

string App name (may be aliased at the publisher’s request).

bundle: Option<Cow<'a, str>>

string A platform-specific application identifier intended to be unique to the app and independent of the exchange. On Android, this should be a bundle or package name (e.g., com.foo.mygame). On iOS, it is typically a numeric ID.

domain: Option<Cow<'a, str>>

string Domain of the app (e.g., “mygame.foo.com”).

storeurl: Option<Cow<'a, str>>

string App store URL for an installed app; for IQG 2.1 compliance.

cat: Option<Vec<ContentCategory>>

string array Array of IAB content categories of the app. Refer to List 5.1.

sectioncat: Option<Vec<ContentCategory>>

string array Array of IAB content categories that describe the current section of the app. Refer to List 5.1.

pagecat: Option<Vec<ContentCategory>>

string array Array of IAB content categories that describe the current page or view of the app. Refer to List 5.1.

ver: Option<Cow<'a, str>>

string Application version.

privacypolicy: Option<bool>

integer Indicates if the app has a privacy policy, where 0 = no, 1 = yes.

paid: Option<bool>

integer 0 = app is free, 1 = the app is a paid version.

publisher: Option<Publisher<'a>>

object Details about the Publisher (Section 3.2.15) of the app.

content: Option<Content<'a>>

object Details about the Content (Section 3.2.16) within the app.

keywords: Option<Cow<'a, str>>

string Comma separated list of keywords about the app.

ext: Option<Object<'a>>

object Placeholder for exchange-specific extensions to OpenRTB.

Trait Implementations

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

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

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

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

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

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for App<'a>

impl<'a> Send for App<'a>

impl<'a> Sync for App<'a>

impl<'a> Unpin for App<'a>

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