Struct imap_codec::envelope::Address
source · pub struct Address<'a> {
pub name: NString<'a>,
pub adl: NString<'a>,
pub mailbox: NString<'a>,
pub host: NString<'a>,
}Expand description
An address structure describes an electronic mail address. TODO(misuse):
Here are many invariants …
mailbox: NIL indicates end of [RFC-2822] group; if non-NIL and host is NIL, holds [RFC-2822] group name. Otherwise, holds [RFC-2822] local-part after removing [RFC-2822] quoting
host: NIL indicates [RFC-2822] group syntax. Otherwise, holds [RFC-2822] domain name
Fields§
§name: NString<'a>Personal name
adl: NString<'a>At-domain-list (source route)
mailbox: NString<'a>Mailbox name
host: NString<'a>Host name
Trait Implementations§
source§impl<'a, 'arbitrary> Arbitrary<'arbitrary> for Address<'a>where
'arbitrary: 'a,
impl<'a, 'arbitrary> Arbitrary<'arbitrary> for Address<'a>where 'arbitrary: 'a,
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Address<'a>, Error>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Address<'a>, Error>
Generate an arbitrary value of
Self from the given unstructured data. Read moresource§impl<'de, 'a> Deserialize<'de> for Address<'a>
impl<'de, 'a> Deserialize<'de> for Address<'a>
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Address<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Address<'a>, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> IntoBoundedStatic for Address<'a>
impl<'a> IntoBoundedStatic for Address<'a>
source§fn into_static(self) -> <Address<'a> as IntoBoundedStatic>::Static
fn into_static(self) -> <Address<'a> as IntoBoundedStatic>::Static
Convert an owned
T into an owned T such that T: 'static.source§impl<'a> PartialEq<Address<'a>> for Address<'a>
impl<'a> PartialEq<Address<'a>> for Address<'a>
source§impl<'a> Serialize for Address<'a>
impl<'a> Serialize for Address<'a>
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl<'a> ToBoundedStatic for Address<'a>
impl<'a> ToBoundedStatic for Address<'a>
impl<'a> Eq for Address<'a>
impl<'a> StructuralEq for Address<'a>
impl<'a> StructuralPartialEq for Address<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Address<'a>
impl<'a> Send for Address<'a>
impl<'a> Sync for Address<'a>
impl<'a> Unpin for Address<'a>
impl<'a> UnwindSafe for Address<'a>
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