Struct App

Source
pub struct App {
Show 15 fields pub id: Option<String>, pub name: Option<String>, pub bundle: Option<String>, pub domain: Option<String>, pub storeurl: Option<String>, pub cat: Option<Vec<ContentCategory>>, pub sectioncat: Option<Vec<ContentCategory>>, pub pagecat: Option<Vec<ContentCategory>>, pub ver: Option<String>, pub privacypolicy: Option<bool>, pub paid: Option<bool>, pub publisher: Option<Publisher>, pub content: Option<Content>, pub keywords: Option<String>, pub ext: Option<Map<String, Value>>,
}
Expand description

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<String>

string; recommended Exchange-specific app ID.

§name: Option<String>

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

§bundle: Option<String>

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<String>

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

§storeurl: Option<String>

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<String>

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>

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

§content: Option<Content>

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

§keywords: Option<String>

string Comma separated list of keywords about the app.

§ext: Option<Map<String, Value>>

object Placeholder for exchange-specific extensions to OpenRTB.

Trait Implementations§

Source§

impl Clone for App

Source§

fn clone(&self) -> App

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for App

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for App

Source§

fn default() -> App

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for App

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for App

Source§

fn eq(&self, other: &App) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for App

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for App

Auto Trait Implementations§

§

impl Freeze for App

§

impl RefUnwindSafe for App

§

impl Send for App

§

impl Sync for App

§

impl Unpin for App

§

impl UnwindSafe for App

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DefaultExt for T
where T: Default + PartialEq,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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