#[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 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§impl PartialOrd for MessagePlaceholderField
impl PartialOrd for MessagePlaceholderField
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<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.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