pub struct Canonical {
pub local: Vec<u8>,
pub domain: Vec<u8>,
}Expand description
The canonical form of an address: its local part and domain with a provider’s aliases removed.
PHP: the array ['local' => ..., 'domain' => ...] of getCanonical().
Fields§
§local: Vec<u8>The part before the @.
domain: Vec<u8>The part after the @.
Implementations§
Trait Implementations§
impl Eq for Canonical
impl StructuralPartialEq for Canonical
Auto Trait Implementations§
impl Forget for Canonical
impl Freeze for Canonical
impl Move for Canonical
impl RefUnwindSafe for Canonical
impl Send for Canonicalwhere
RawVecInner: Send,
impl Sync for Canonicalwhere
RawVecInner: Sync,
impl Unpin for Canonical
impl UnsafeUnpin for Canonical
impl UnwindSafe for Canonicalwhere
RawVecInner: UnwindSafe,
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§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.