Enum google_api_proto::google::ads::googleads::v16::enums::served_asset_field_type_enum::ServedAssetFieldType
source · #[repr(i32)]pub enum ServedAssetFieldType {
Show 32 variants
Unspecified = 0,
Unknown = 1,
Headline1 = 2,
Headline2 = 3,
Headline3 = 4,
Description1 = 5,
Description2 = 6,
Headline = 7,
HeadlineInPortrait = 8,
LongHeadline = 9,
Description = 10,
DescriptionInPortrait = 11,
BusinessNameInPortrait = 12,
BusinessName = 13,
MarketingImage = 14,
MarketingImageInPortrait = 15,
SquareMarketingImage = 16,
PortraitMarketingImage = 17,
Logo = 18,
LandscapeLogo = 19,
CallToAction = 20,
YouTubeVideo = 21,
Sitelink = 22,
Call = 23,
MobileApp = 24,
Callout = 25,
StructuredSnippet = 26,
Price = 27,
Promotion = 28,
AdImage = 29,
LeadForm = 30,
BusinessLogo = 31,
}
Expand description
The possible asset field types.
Variants§
Unspecified = 0
No value has been specified.
Unknown = 1
The received value is not known in this version.
This is a response-only value.
Headline1 = 2
The asset is used in headline 1.
Headline2 = 3
The asset is used in headline 2.
Headline3 = 4
The asset is used in headline 3.
Description1 = 5
The asset is used in description 1.
Description2 = 6
The asset is used in description 2.
Headline = 7
The asset was used in a headline. Use this only if there is only one headline in the ad. Otherwise, use the HEADLINE_1, HEADLINE_2 or HEADLINE_3 enums
HeadlineInPortrait = 8
The asset was used as a headline in portrait image.
LongHeadline = 9
The asset was used in a long headline (used in MultiAssetResponsiveAd).
Description = 10
The asset was used in a description. Use this only if there is only one description in the ad. Otherwise, use the DESCRIPTION_1 or DESCRIPTION_@ enums
DescriptionInPortrait = 11
The asset was used as description in portrait image.
BusinessNameInPortrait = 12
The asset was used as business name in portrait image.
BusinessName = 13
The asset was used as business name.
MarketingImage = 14
The asset was used as a marketing image.
MarketingImageInPortrait = 15
The asset was used as a marketing image in portrait image.
SquareMarketingImage = 16
The asset was used as a square marketing image.
PortraitMarketingImage = 17
The asset was used as a portrait marketing image.
Logo = 18
The asset was used as a logo.
LandscapeLogo = 19
The asset was used as a landscape logo.
CallToAction = 20
The asset was used as a call-to-action.
YouTubeVideo = 21
The asset was used as a YouTube video.
Sitelink = 22
This asset is used as a sitelink.
Call = 23
This asset is used as a call.
MobileApp = 24
This asset is used as a mobile app.
Callout = 25
This asset is used as a callout.
StructuredSnippet = 26
This asset is used as a structured snippet.
Price = 27
This asset is used as a price.
Promotion = 28
This asset is used as a promotion.
AdImage = 29
This asset is used as an image.
LeadForm = 30
The asset is used as a lead form.
BusinessLogo = 31
The asset is used as a business logo.
Implementations§
source§impl ServedAssetFieldType
impl ServedAssetFieldType
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of ServedAssetFieldType
.
sourcepub fn from_i32(value: i32) -> Option<ServedAssetFieldType>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<ServedAssetFieldType>
Converts an i32
to a ServedAssetFieldType
, or None
if value
is not a valid variant.
source§impl ServedAssetFieldType
impl ServedAssetFieldType
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for ServedAssetFieldType
impl Clone for ServedAssetFieldType
source§fn clone(&self) -> ServedAssetFieldType
fn clone(&self) -> ServedAssetFieldType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ServedAssetFieldType
impl Debug for ServedAssetFieldType
source§impl Default for ServedAssetFieldType
impl Default for ServedAssetFieldType
source§fn default() -> ServedAssetFieldType
fn default() -> ServedAssetFieldType
source§impl From<ServedAssetFieldType> for i32
impl From<ServedAssetFieldType> for i32
source§fn from(value: ServedAssetFieldType) -> i32
fn from(value: ServedAssetFieldType) -> i32
source§impl Hash for ServedAssetFieldType
impl Hash for ServedAssetFieldType
source§impl Ord for ServedAssetFieldType
impl Ord for ServedAssetFieldType
source§fn cmp(&self, other: &ServedAssetFieldType) -> Ordering
fn cmp(&self, other: &ServedAssetFieldType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for ServedAssetFieldType
impl PartialEq for ServedAssetFieldType
source§fn eq(&self, other: &ServedAssetFieldType) -> bool
fn eq(&self, other: &ServedAssetFieldType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ServedAssetFieldType
impl PartialOrd for ServedAssetFieldType
source§fn partial_cmp(&self, other: &ServedAssetFieldType) -> Option<Ordering>
fn partial_cmp(&self, other: &ServedAssetFieldType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for ServedAssetFieldType
impl TryFrom<i32> for ServedAssetFieldType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<ServedAssetFieldType, DecodeError>
fn try_from(value: i32) -> Result<ServedAssetFieldType, DecodeError>
impl Copy for ServedAssetFieldType
impl Eq for ServedAssetFieldType
impl StructuralPartialEq for ServedAssetFieldType
Auto Trait Implementations§
impl Freeze for ServedAssetFieldType
impl RefUnwindSafe for ServedAssetFieldType
impl Send for ServedAssetFieldType
impl Sync for ServedAssetFieldType
impl Unpin for ServedAssetFieldType
impl UnwindSafe for ServedAssetFieldType
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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