Enum openrtb_native1::request::AssetValue
source · Variants§
Title(Title)
recommended; object; - Title object for title assets. See TitleObject definition.
Img(Image)
recommended; object; - Image object for image assets. See ImageObject definition.
Video(Video)
optional1; object; - Video object for video assets. See the Video request object definition. Note that in-stream (ie preroll, etc) video ads are not part of Native. Native ads may contain a video as the ad creative itself.
Data(Data)
recommended; object; - Data object for brand name, description, ratings, prices etc. See DataObject definition.
Implementations§
source§impl AssetValue
impl AssetValue
pub fn is_title(&self) -> bool
pub fn as_title(&self) -> Option<&Title>
pub fn as_title_mut(&mut self) -> Option<&mut Title>
pub fn is_image(&self) -> bool
pub fn as_image(&self) -> Option<&Image>
pub fn as_image_mut(&mut self) -> Option<&mut Image>
pub fn is_video(&self) -> bool
pub fn as_video(&self) -> Option<&Video>
pub fn as_video_mut(&mut self) -> Option<&mut Video>
pub fn is_data(&self) -> bool
pub fn as_data(&self) -> Option<&Data>
pub fn as_data_mut(&mut self) -> Option<&mut Data>
Trait Implementations§
source§impl Clone for AssetValue
impl Clone for AssetValue
source§fn clone(&self) -> AssetValue
fn clone(&self) -> AssetValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AssetValue
impl Debug for AssetValue
source§impl<'de> Deserialize<'de> for AssetValue
impl<'de> Deserialize<'de> for AssetValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more