[−][src]Enum openrtb_native1::response::AssetValue
Variants
Title(Title<'a>)
optional; object; - Title object for title assets. See TitleObject definition.
Img(Image<'a>)
optional; object; - Image object for image assets. See ImageObject definition.
Video(Video<'a>)
optional; object; - Video object for video assets. See Video response object definition. Note that in-stream video ads are not part of Native. Native ads may contain a video as the ad creative itself.
Data(Data<'a>)
optional; object; - Data object for ratings, prices etc.
Implementations
impl<'a> AssetValue<'a>
[src]
pub fn is_title(&self) -> bool
[src]
pub fn as_title(&self) -> Option<&Title<'_>>
[src]
pub fn as_title_mut(&'a mut self) -> Option<&'a mut Title<'_>>
[src]
pub fn is_image(&self) -> bool
[src]
pub fn as_image(&self) -> Option<&Image<'_>>
[src]
pub fn as_image_mut(&'a mut self) -> Option<&'a mut Image<'_>>
[src]
pub fn is_video(&self) -> bool
[src]
pub fn as_video(&self) -> Option<&Video<'_>>
[src]
pub fn as_video_mut(&'a mut self) -> Option<&'a mut Video<'_>>
[src]
pub fn is_data(&self) -> bool
[src]
pub fn as_data(&self) -> Option<&Data<'_>>
[src]
pub fn as_data_mut(&'a mut self) -> Option<&'a mut Data<'_>>
[src]
Trait Implementations
impl<'a> Clone for AssetValue<'a>
[src]
pub fn clone(&self) -> AssetValue<'a>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for AssetValue<'a>
[src]
impl<'de: 'a, 'a> Deserialize<'de> for AssetValue<'a>
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<'a> PartialEq<AssetValue<'a>> for AssetValue<'a>
[src]
pub fn eq(&self, other: &AssetValue<'a>) -> bool
[src]
pub fn ne(&self, other: &AssetValue<'a>) -> bool
[src]
impl<'a> Serialize for AssetValue<'a>
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'a> StructuralPartialEq for AssetValue<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for AssetValue<'a>
impl<'a> Send for AssetValue<'a>
impl<'a> Sync for AssetValue<'a>
impl<'a> Unpin for AssetValue<'a>
impl<'a> UnwindSafe for AssetValue<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,