Struct Content

Source
pub struct Content {
Show 26 fields pub id: Option<String>, pub episode: Option<i32>, pub title: Option<String>, pub series: Option<String>, pub season: Option<String>, pub artist: Option<String>, pub genre: Option<String>, pub album: Option<String>, pub isrc: Option<String>, pub producer: Option<Producer>, pub url: Option<String>, pub cat: Option<Vec<ContentCategory>>, pub prodq: Option<ProductionQuality>, pub videoquality: Option<ProductionQuality>, pub context: Option<ContentContext>, pub contentrating: Option<String>, pub userrating: Option<String>, pub qagmediarating: Option<IqgMediaRating>, pub keywords: Option<String>, pub livestream: Option<bool>, pub sourcerelationship: Option<bool>, pub len: Option<i32>, pub language: Option<i32>, pub embeddable: Option<bool>, pub data: Option<Vec<Data>>, pub ext: Option<Map<String, Value>>,
}
Expand description

3.2.16 Object: Content

This object describes the content in which the impression will appear, which may be syndicated or non- syndicated content. This object may be useful when syndicated content contains impressions and does not necessarily match the publisher’s general content. The exchange might or might not have knowledge of the page where the content is running, as a result of the syndication method. For example might be a video impression embedded in an iframe on an unknown web property or device.

Fields§

§id: Option<String>

string ID uniquely identifying the content.

§episode: Option<i32>

integer Episode number.

§title: Option<String>

string Content title. Video Examples: “Search Committee” (television), “A New Hope” (movie), or “Endgame” (made for web). Non-Video Example: “Why an Antarctic Glacier Is Melting So Quickly” (Time magazine article).

§series: Option<String>

string Content series. Video Examples: “The Office” (television), “Star Wars” (movie), or “Arby ‘N’ The Chief” (made for web). Non-Video Example: “Ecocentric” (Time Magazine blog).

§season: Option<String>

string Content season (e.g., “Season 3”).

§artist: Option<String>

string Artist credited with the content.

§genre: Option<String>

string Genre that best describes the content (e.g., rock, pop, etc).

§album: Option<String>

string Album to which the content belongs; typically for audio.

§isrc: Option<String>

string International Standard Recording Code conforming to ISO-3901.

§producer: Option<Producer>

object Details about the content Producer (Section 3.2.17).

§url: Option<String>

string URL of the content, for buy-side contextualization or review.

§cat: Option<Vec<ContentCategory>>

string array Array of IAB content categories that describe the content producer. Refer to List 5.1.

§prodq: Option<ProductionQuality>

integer Production quality. Refer to List 5.13.

§videoquality: Option<ProductionQuality>
👎Deprecated since 0.1.0: Please use the prodq field instead

integer; DEPRECATED Video quality. Refer to List 5.13.

§context: Option<ContentContext>

integer Type of content (game, video, text, etc.). Refer to List 5.18.

§contentrating: Option<String>

string Content rating (e.g., MPAA).

§userrating: Option<String>

string User rating of the content (e.g., number of stars, likes, etc.).

§qagmediarating: Option<IqgMediaRating>

integer Media rating per IQG guidelines. Refer to List 5.19.

§keywords: Option<String>

string Comma separated list of keywords describing the content.

§livestream: Option<bool>

integer 0 = not live, 1 = content is live (e.g., stream, live blog).

§sourcerelationship: Option<bool>

integer 0 = indirect, 1 = direct.

§len: Option<i32>

integer Length of content in seconds; appropriate for video or audio.

§language: Option<i32>

string Content language using ISO-639-1-alpha-2.

§embeddable: Option<bool>

integer Indicator of whether or not the content is embeddable (e.g., an embeddable video player), where 0 = no, 1 = yes.

§data: Option<Vec<Data>>

object array Additional content data. Each Data object (Section 3.2.21) represents a different data source.

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

object Placeholder for exchange-specific extensions to OpenRTB.

Trait Implementations§

Source§

impl Clone for Content

Source§

fn clone(&self) -> Content

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 Content

Source§

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

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

impl Default for Content

Source§

fn default() -> Content

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

impl<'de> Deserialize<'de> for Content

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 Content

Source§

fn eq(&self, other: &Content) -> 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 Content

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 Content

Auto Trait Implementations§

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