pub struct NativeContent {Show 13 fields
pub advertiser_name: Option<String>,
pub app_icon: Option<Image>,
pub body: Option<String>,
pub call_to_action: Option<String>,
pub click_link_url: Option<String>,
pub click_tracking_url: Option<String>,
pub headline: Option<String>,
pub image: Option<Image>,
pub logo: Option<Image>,
pub price_display_text: Option<String>,
pub star_rating: Option<f64>,
pub video_url: Option<String>,
pub video_vast_xml: Option<String>,
}Expand description
Native content for a creative.
This type is not used in any activity, and only used as part of another schema.
Fields§
§advertiser_name: Option<String>The name of the advertiser or sponsor, to be displayed in the ad creative.
app_icon: Option<Image>The app icon, for app download ads.
body: Option<String>A long description of the ad.
call_to_action: Option<String>A label for the button that the user is supposed to click.
click_link_url: Option<String>The URL that the browser/SDK will load when the user clicks the ad.
click_tracking_url: Option<String>The URL to use for click tracking.
headline: Option<String>A short title for the ad.
image: Option<Image>A large image.
logo: Option<Image>A smaller image, for the advertiser’s logo.
price_display_text: Option<String>The price of the promoted app including currency info.
star_rating: Option<f64>The app rating in the app store. Must be in the range [0-5].
video_url: Option<String>The URL to fetch a native video ad.
video_vast_xml: Option<String>The contents of a VAST document for a native video ad.
Trait Implementations§
Source§impl Clone for NativeContent
impl Clone for NativeContent
Source§fn clone(&self) -> NativeContent
fn clone(&self) -> NativeContent
Returns a duplicate 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 NativeContent
impl Debug for NativeContent
Source§impl Default for NativeContent
impl Default for NativeContent
Source§fn default() -> NativeContent
fn default() -> NativeContent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NativeContent
impl<'de> Deserialize<'de> for NativeContent
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
Source§impl Serialize for NativeContent
impl Serialize for NativeContent
impl Part for NativeContent
Auto Trait Implementations§
impl Freeze for NativeContent
impl RefUnwindSafe for NativeContent
impl Send for NativeContent
impl Sync for NativeContent
impl Unpin for NativeContent
impl UnwindSafe for NativeContent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more