[−][src]Struct sparkpost::transmission::EmailAddress
Email address with optional name
Example
use sparkpost::transmission::EmailAddress; let address = EmailAddress::from("test@test.com"); // create address with name let address = EmailAddress::new("test@test.com", "Name");
Methods
impl EmailAddress
[src]
pub fn new<E: Into<String>, N: Into<String>>(email: E, name: N) -> Self
[src]
create new email address with email and name
Trait Implementations
impl Debug for EmailAddress
[src]
impl Default for EmailAddress
[src]
fn default() -> EmailAddress
[src]
impl<'a> From<&'a str> for EmailAddress
[src]
impl From<EmailAddress> for Recipient
[src]
fn from(address: EmailAddress) -> Self
[src]
impl From<String> for EmailAddress
[src]
impl PartialEq<EmailAddress> for EmailAddress
[src]
fn eq(&self, other: &EmailAddress) -> bool
[src]
fn ne(&self, other: &EmailAddress) -> bool
[src]
impl Serialize for EmailAddress
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for EmailAddress
[src]
Auto Trait Implementations
impl RefUnwindSafe for EmailAddress
impl Send for EmailAddress
impl Sync for EmailAddress
impl Unpin for EmailAddress
impl UnwindSafe for EmailAddress
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,