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§
Trait Implementations§
Source§impl Clone for Originator
impl Clone for Originator
Source§fn clone(&self) -> Originator
fn clone(&self) -> Originator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Originator
impl Debug for Originator
Source§impl Default for Originator
impl Default for Originator
Source§impl<'de> Deserialize<'de> for Originator
impl<'de> Deserialize<'de> for Originator
Source§fn 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
Source§impl From<AlphaNumeric> for Originator
impl From<AlphaNumeric> for Originator
Source§fn from(alphanumeric: AlphaNumeric) -> Self
fn from(alphanumeric: AlphaNumeric) -> Self
Converts to this type from the input type.
Source§impl From<TelephoneNumber> for Originator
impl From<TelephoneNumber> for Originator
Source§fn from(telephonenumber: TelephoneNumber) -> Self
fn from(telephonenumber: TelephoneNumber) -> Self
Converts to this type from the input type.
Source§impl From<u64> for Originator
impl From<u64> for Originator
Source§impl FromStr for Originator
impl FromStr for Originator
Source§impl PartialEq for Originator
impl PartialEq for Originator
Source§impl Serialize for Originator
impl Serialize for Originator
Source§impl ToString for Originator
impl ToString for Originator
impl Eq for Originator
impl StructuralPartialEq for Originator
Auto Trait Implementations§
impl Freeze for Originator
impl RefUnwindSafe for Originator
impl Send for Originator
impl Sync for Originator
impl Unpin for Originator
impl UnwindSafe for Originator
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key
and return true
if they are equal.