Struct openrtb2::Site

source ·
pub struct Site {
Show 15 fields pub id: Option<String>, pub name: Option<String>, pub domain: Option<String>, pub cat: Option<Vec<ContentCategory>>, pub sectioncat: Option<Vec<ContentCategory>>, pub pagecat: Option<Vec<ContentCategory>>, pub page: Option<String>, pub ref: Option<String>, pub search: Option<String>, pub mobile: Option<bool>, pub privacypolicy: Option<bool>, pub publisher: Option<Publisher>, pub content: Option<Content>, pub keywords: Option<String>, pub ext: Option<Map<String, Value>>,
}
Expand description

3.2.13 Object: Site

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

Fields§

§id: Option<String>

string; recommended Exchange-specific site ID.

§name: Option<String>

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

§domain: Option<String>

string Domain of the site (e.g., “mysite.foo.com”).

§cat: Option<Vec<ContentCategory>>

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

§sectioncat: Option<Vec<ContentCategory>>

string array Array of IAB content categories that describe the current section of the site. 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 site. Refer to List 5.1.

§page: Option<String>

string URL of the page where the impression will be shown.

§ref: Option<String>

string Referrer URL that caused navigation to the current page.

§search: Option<String>

string Search string that caused navigation to the current page.

§mobile: Option<bool>

integer Indicates if the site has been programmed to optimize layout when viewed on mobile devices, where 0 = no, 1 = yes.

§privacypolicy: Option<bool>

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

§publisher: Option<Publisher>

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

§content: Option<Content>

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

§keywords: Option<String>

string Comma separated list of keywords about the site.

§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.