[−][src]Struct mailjet_rs::common::Recipient
Email recipient composed by an email address and the name of the owner
Fields
email: String
name: String
Implementations
impl Recipient
[src]
pub fn new(email: &str) -> Self
[src]
Creates a new Recipient
instance with no name
pub fn with_name(email: &str, name: &str) -> Self
[src]
Creates a new Recipient
instance with an email
and
a name
pub fn from_comma_separated(recipients: &str) -> Vec<Self>
[src]
Creates a Vec<Recipient
from an string slice of comma separated
emails.
This function does not support recipients with name provided as string.
pub fn as_comma_separated(&self) -> String
[src]
Trait Implementations
impl Debug for Recipient
[src]
impl<'de> Deserialize<'de> for Recipient
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for Recipient
[src]
Auto Trait Implementations
impl RefUnwindSafe for Recipient
impl Send for Recipient
impl Sync for Recipient
impl Unpin for Recipient
impl UnwindSafe for Recipient
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
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>,