Struct sparkpost::EmailAddress [−][src]
pub struct EmailAddress { /* fields omitted */ }
Email address with name
Example
use sparkpost::EmailAddress; let expected = EmailAddress::new("test@test.com"); let address: EmailAddress = "test@test.com".into(); assert_eq!(expected, address); // create address with name let address = EmailAddress::with_name("test@test.com", "Joe Blow");
Methods
impl EmailAddress
[src]
impl EmailAddress
Trait Implementations
impl Debug for EmailAddress
[src]
impl Debug for EmailAddress
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for EmailAddress
[src]
impl Default for EmailAddress
fn default() -> EmailAddress
[src]
fn default() -> EmailAddress
Returns the "default value" for a type. Read more
impl PartialEq for EmailAddress
[src]
impl PartialEq for EmailAddress
fn eq(&self, other: &EmailAddress) -> bool
[src]
fn eq(&self, other: &EmailAddress) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &EmailAddress) -> bool
[src]
fn ne(&self, other: &EmailAddress) -> bool
This method tests for !=
.
impl<'a> From<&'a str> for EmailAddress
[src]
impl<'a> From<&'a str> for EmailAddress
impl From<String> for EmailAddress
[src]
impl From<String> for EmailAddress
Auto Trait Implementations
impl Send for EmailAddress
impl Send for EmailAddress
impl Sync for EmailAddress
impl Sync for EmailAddress