Enum google_api_proto::google::ads::googleads::v17::enums::message_placeholder_field_enum::MessagePlaceholderField
source · #[repr(i32)]pub enum MessagePlaceholderField {
Unspecified = 0,
Unknown = 1,
BusinessName = 2,
CountryCode = 3,
PhoneNumber = 4,
MessageExtensionText = 5,
MessageText = 6,
}
Expand description
Possible values for Message placeholder fields.
Variants§
Unspecified = 0
Not specified.
Unknown = 1
Used for return value only. Represents value unknown in this version.
BusinessName = 2
Data Type: STRING. The name of your business.
CountryCode = 3
Data Type: STRING. Country code of phone number.
PhoneNumber = 4
Data Type: STRING. A phone number that’s capable of sending and receiving text messages.
MessageExtensionText = 5
Data Type: STRING. The text that will go in your click-to-message ad.
MessageText = 6
Data Type: STRING. The message text automatically shows in people’s messaging apps when they tap to send you a message.
Implementations§
source§impl MessagePlaceholderField
impl MessagePlaceholderField
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of MessagePlaceholderField
.
sourcepub fn from_i32(value: i32) -> Option<MessagePlaceholderField>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<MessagePlaceholderField>
Converts an i32
to a MessagePlaceholderField
, or None
if value
is not a valid variant.
source§impl MessagePlaceholderField
impl MessagePlaceholderField
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 MessagePlaceholderField
impl Clone for MessagePlaceholderField
source§fn clone(&self) -> MessagePlaceholderField
fn clone(&self) -> MessagePlaceholderField
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MessagePlaceholderField
impl Debug for MessagePlaceholderField
source§impl Default for MessagePlaceholderField
impl Default for MessagePlaceholderField
source§fn default() -> MessagePlaceholderField
fn default() -> MessagePlaceholderField
source§impl From<MessagePlaceholderField> for i32
impl From<MessagePlaceholderField> for i32
source§fn from(value: MessagePlaceholderField) -> i32
fn from(value: MessagePlaceholderField) -> i32
source§impl Hash for MessagePlaceholderField
impl Hash for MessagePlaceholderField
source§impl Ord for MessagePlaceholderField
impl Ord for MessagePlaceholderField
source§fn cmp(&self, other: &MessagePlaceholderField) -> Ordering
fn cmp(&self, other: &MessagePlaceholderField) -> 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 MessagePlaceholderField
impl PartialEq for MessagePlaceholderField
source§fn eq(&self, other: &MessagePlaceholderField) -> bool
fn eq(&self, other: &MessagePlaceholderField) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MessagePlaceholderField
impl PartialOrd for MessagePlaceholderField
source§fn partial_cmp(&self, other: &MessagePlaceholderField) -> Option<Ordering>
fn partial_cmp(&self, other: &MessagePlaceholderField) -> 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 MessagePlaceholderField
impl TryFrom<i32> for MessagePlaceholderField
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<MessagePlaceholderField, UnknownEnumValue>
fn try_from(value: i32) -> Result<MessagePlaceholderField, UnknownEnumValue>
impl Copy for MessagePlaceholderField
impl Eq for MessagePlaceholderField
impl StructuralPartialEq for MessagePlaceholderField
Auto Trait Implementations§
impl Freeze for MessagePlaceholderField
impl RefUnwindSafe for MessagePlaceholderField
impl Send for MessagePlaceholderField
impl Sync for MessagePlaceholderField
impl Unpin for MessagePlaceholderField
impl UnwindSafe for MessagePlaceholderField
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