Struct openrtb2::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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.