pub struct Addr<'x> {
pub name: Option<Cow<'x, str>>,
pub address: Option<Cow<'x, str>>,
}
Expand description
An RFC5322 or RFC2369 internet address.
Fields§
§name: Option<Cow<'x, str>>
The address name including comments
address: Option<Cow<'x, str>>
An e-mail address (RFC5322/RFC2369) or URL (RFC2369)
Implementations§
Trait Implementations§
Source§impl<'de, 'x> Deserialize<'de> for Addr<'x>
impl<'de, 'x> Deserialize<'de> for Addr<'x>
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
impl<'x> Eq for Addr<'x>
impl<'x> StructuralPartialEq for Addr<'x>
Auto Trait Implementations§
impl<'x> Freeze for Addr<'x>
impl<'x> RefUnwindSafe for Addr<'x>
impl<'x> Send for Addr<'x>
impl<'x> Sync for Addr<'x>
impl<'x> Unpin for Addr<'x>
impl<'x> UnwindSafe for Addr<'x>
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