Enum google_api_proto::google::ads::googleads::v14::enums::structured_snippet_placeholder_field_enum::StructuredSnippetPlaceholderField
source · #[repr(i32)]pub enum StructuredSnippetPlaceholderField {
Unspecified = 0,
Unknown = 1,
Header = 2,
Snippets = 3,
}
Expand description
Possible values for Structured Snippet placeholder fields.
Variants§
Unspecified = 0
Not specified.
Unknown = 1
Used for return value only. Represents value unknown in this version.
Header = 2
Data Type: STRING. The category of snippet of your products/services. Must match exactly one of the predefined structured snippets headers. For a list, visit https://developers.google.com/google-ads/api/reference/data/structured-snippet-headers
Snippets = 3
Data Type: STRING_LIST. Text values that describe your products/services. All text must be family safe. Special or non-ASCII characters are not permitted. A snippet can be at most 25 characters.
Implementations§
source§impl StructuredSnippetPlaceholderField
impl StructuredSnippetPlaceholderField
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of StructuredSnippetPlaceholderField
.
sourcepub fn from_i32(value: i32) -> Option<StructuredSnippetPlaceholderField>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<StructuredSnippetPlaceholderField>
Converts an i32
to a StructuredSnippetPlaceholderField
, or None
if value
is not a valid variant.
source§impl StructuredSnippetPlaceholderField
impl StructuredSnippetPlaceholderField
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 StructuredSnippetPlaceholderField
impl Clone for StructuredSnippetPlaceholderField
source§fn clone(&self) -> StructuredSnippetPlaceholderField
fn clone(&self) -> StructuredSnippetPlaceholderField
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for StructuredSnippetPlaceholderField
impl Default for StructuredSnippetPlaceholderField
source§fn default() -> StructuredSnippetPlaceholderField
fn default() -> StructuredSnippetPlaceholderField
source§impl From<StructuredSnippetPlaceholderField> for i32
impl From<StructuredSnippetPlaceholderField> for i32
source§fn from(value: StructuredSnippetPlaceholderField) -> i32
fn from(value: StructuredSnippetPlaceholderField) -> i32
source§impl Ord for StructuredSnippetPlaceholderField
impl Ord for StructuredSnippetPlaceholderField
source§fn cmp(&self, other: &StructuredSnippetPlaceholderField) -> Ordering
fn cmp(&self, other: &StructuredSnippetPlaceholderField) -> 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 StructuredSnippetPlaceholderField
impl PartialEq for StructuredSnippetPlaceholderField
source§fn eq(&self, other: &StructuredSnippetPlaceholderField) -> bool
fn eq(&self, other: &StructuredSnippetPlaceholderField) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for StructuredSnippetPlaceholderField
impl PartialOrd for StructuredSnippetPlaceholderField
source§fn partial_cmp(
&self,
other: &StructuredSnippetPlaceholderField
) -> Option<Ordering>
fn partial_cmp( &self, other: &StructuredSnippetPlaceholderField ) -> 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 StructuredSnippetPlaceholderField
impl TryFrom<i32> for StructuredSnippetPlaceholderField
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(
value: i32
) -> Result<StructuredSnippetPlaceholderField, DecodeError>
fn try_from( value: i32 ) -> Result<StructuredSnippetPlaceholderField, DecodeError>
impl Copy for StructuredSnippetPlaceholderField
impl Eq for StructuredSnippetPlaceholderField
impl StructuralPartialEq for StructuredSnippetPlaceholderField
Auto Trait Implementations§
impl Freeze for StructuredSnippetPlaceholderField
impl RefUnwindSafe for StructuredSnippetPlaceholderField
impl Send for StructuredSnippetPlaceholderField
impl Sync for StructuredSnippetPlaceholderField
impl Unpin for StructuredSnippetPlaceholderField
impl UnwindSafe for StructuredSnippetPlaceholderField
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