Enum messagebird_async::sms::Originator [−][src]
pub enum Originator { TelephoneNumber(TelephoneNumber), Other(AlphaNumeric), }
Variants
TelephoneNumber(TelephoneNumber)
Other(AlphaNumeric)
Methods
impl Originator
[src]
impl Originator
Trait Implementations
impl Debug for Originator
[src]
impl Debug for Originator
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for Originator
[src]
impl Eq for Originator
impl PartialEq for Originator
[src]
impl PartialEq for Originator
fn eq(&self, other: &Originator) -> bool
[src]
fn eq(&self, other: &Originator) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Originator) -> bool
[src]
fn ne(&self, other: &Originator) -> bool
This method tests for !=
.
impl Default for Originator
[src]
impl Default for Originator
impl FromStr for Originator
[src]
impl FromStr for Originator
type Err = MessageBirdError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
fn from_str(s: &str) -> Result<Self, Self::Err>
Parses a string s
to return a value of this type. Read more
impl ToString for Originator
[src]
impl ToString for Originator
impl From<TelephoneNumber> for Originator
[src]
impl From<TelephoneNumber> for Originator
fn from(telephonenumber: TelephoneNumber) -> Self
[src]
fn from(telephonenumber: TelephoneNumber) -> Self
Performs the conversion.
impl From<AlphaNumeric> for Originator
[src]
impl From<AlphaNumeric> for Originator
fn from(alphanumeric: AlphaNumeric) -> Self
[src]
fn from(alphanumeric: AlphaNumeric) -> Self
Performs the conversion.
impl<'de> Deserialize<'de> for Originator
[src]
impl<'de> Deserialize<'de> for Originator
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl Send for Originator
impl Send for Originator
impl Sync for Originator
impl Sync for Originator