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]

Trait Implementations

impl Debug for EmailAddress
[src]

Formats the value using the given formatter. Read more

impl Default for EmailAddress
[src]

Returns the "default value" for a type. Read more

impl PartialEq for EmailAddress
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a> From<&'a str> for EmailAddress
[src]

Performs the conversion.

impl From<String> for EmailAddress
[src]

Performs the conversion.

Auto Trait Implementations