Enum messagebird_async::sms::Originator
source · pub enum Originator {
TelephoneNumber(TelephoneNumber),
Other(AlphaNumeric),
}
Expand description
Origin of a message
Defines the source of a message, which can either be an arbitrary alphanumeric string or a telephone number
Variants
TelephoneNumber(TelephoneNumber)
Other(AlphaNumeric)
Implementations
sourceimpl Originator
impl Originator
Trait Implementations
sourceimpl Debug for Originator
impl Debug for Originator
sourceimpl Default for Originator
impl Default for Originator
sourceimpl<'de> Deserialize<'de> for Originator
impl<'de> Deserialize<'de> for Originator
sourcefn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<AlphaNumeric> for Originator
impl From<AlphaNumeric> for Originator
sourcefn from(alphanumeric: AlphaNumeric) -> Self
fn from(alphanumeric: AlphaNumeric) -> Self
Converts to this type from the input type.
sourceimpl From<TelephoneNumber> for Originator
impl From<TelephoneNumber> for Originator
sourcefn from(telephonenumber: TelephoneNumber) -> Self
fn from(telephonenumber: TelephoneNumber) -> Self
Converts to this type from the input type.
sourceimpl FromStr for Originator
impl FromStr for Originator
sourceimpl PartialEq<Originator> for Originator
impl PartialEq<Originator> for Originator
sourcefn eq(&self, other: &Originator) -> bool
fn eq(&self, other: &Originator) -> bool
sourceimpl Serialize for Originator
impl Serialize for Originator
sourceimpl ToString for Originator
impl ToString for Originator
impl Eq for Originator
impl StructuralEq for Originator
impl StructuralPartialEq for Originator
Auto Trait Implementations
impl RefUnwindSafe for Originator
impl Send for Originator
impl Sync for Originator
impl Unpin for Originator
impl UnwindSafe for Originator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.