pub struct LocalAdInfo {
pub headlines: Vec<AdTextAsset>,
pub descriptions: Vec<AdTextAsset>,
pub call_to_actions: Vec<AdTextAsset>,
pub marketing_images: Vec<AdImageAsset>,
pub logo_images: Vec<AdImageAsset>,
pub videos: Vec<AdVideoAsset>,
pub path1: String,
pub path2: String,
}
Expand description
A local ad.
Fields§
§headlines: Vec<AdTextAsset>
List of text assets for headlines. When the ad serves the headlines will be selected from this list. At least 1 and at most 5 headlines must be specified.
descriptions: Vec<AdTextAsset>
List of text assets for descriptions. When the ad serves the descriptions will be selected from this list. At least 1 and at most 5 descriptions must be specified.
call_to_actions: Vec<AdTextAsset>
List of text assets for call-to-actions. When the ad serves the call-to-actions will be selected from this list. At least 1 and at most 5 call-to-actions must be specified.
marketing_images: Vec<AdImageAsset>
List of marketing image assets that may be displayed with the ad. The images must be 314x600 pixels or 320x320 pixels. At least 1 and at most 20 image assets must be specified.
logo_images: Vec<AdImageAsset>
List of logo image assets that may be displayed with the ad. The images must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5 image assets must be specified.
videos: Vec<AdVideoAsset>
List of YouTube video assets that may be displayed with the ad. At least 1 and at most 20 video assets must be specified.
path1: String
First part of optional text that can be appended to the URL in the ad.
path2: String
Second part of optional text that can be appended to the URL in the ad.
This field can only be set when path1
is also set.
Trait Implementations§
Source§impl Clone for LocalAdInfo
impl Clone for LocalAdInfo
Source§fn clone(&self) -> LocalAdInfo
fn clone(&self) -> LocalAdInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for LocalAdInfo
impl Debug for LocalAdInfo
Source§impl Default for LocalAdInfo
impl Default for LocalAdInfo
Source§impl Message for LocalAdInfo
impl Message for LocalAdInfo
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for LocalAdInfo
impl PartialEq for LocalAdInfo
impl StructuralPartialEq for LocalAdInfo
Auto Trait Implementations§
impl Freeze for LocalAdInfo
impl RefUnwindSafe for LocalAdInfo
impl Send for LocalAdInfo
impl Sync for LocalAdInfo
impl Unpin for LocalAdInfo
impl UnwindSafe for LocalAdInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request