pub enum CanonicalIdentity {
TelephoneNumber(String),
Uri(String),
}Expand description
A canonical origin or destination identity.
Variants§
TelephoneNumber(String)
Telephone-number identity, containing only digits, *, and #.
Uri(String)
Canonical SIP/SIPS address of record.
Implementations§
Source§impl CanonicalIdentity
impl CanonicalIdentity
Sourcepub fn from_uri(uri: &Uri) -> Result<Self, IdentityError>
pub fn from_uri(uri: &Uri) -> Result<Self, IdentityError>
Derive the RFC 8224 §§8.1, 8.3, and 8.5 identity from a URI.
Trait Implementations§
Source§impl Clone for CanonicalIdentity
impl Clone for CanonicalIdentity
Source§fn clone(&self) -> CanonicalIdentity
fn clone(&self) -> CanonicalIdentity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CanonicalIdentity
impl Debug for CanonicalIdentity
Source§impl Hash for CanonicalIdentity
impl Hash for CanonicalIdentity
Source§impl PartialEq for CanonicalIdentity
impl PartialEq for CanonicalIdentity
Source§fn eq(&self, other: &CanonicalIdentity) -> bool
fn eq(&self, other: &CanonicalIdentity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CanonicalIdentity
impl StructuralPartialEq for CanonicalIdentity
Auto Trait Implementations§
impl Freeze for CanonicalIdentity
impl RefUnwindSafe for CanonicalIdentity
impl Send for CanonicalIdentity
impl Sync for CanonicalIdentity
impl Unpin for CanonicalIdentity
impl UnsafeUnpin for CanonicalIdentity
impl UnwindSafe for CanonicalIdentity
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