[][src]Struct postal_rs::RawMessage

pub struct RawMessage {
    pub mail_from: String,
    pub rcpt_to: Vec<String>,
    pub data: String,
    pub bounce: Option<bool>,
}

RawMessage allows you to send us a raw RFC2822 formatted message along with the recipients that it should be sent to.

Fields

mail_from: String

The address that should be logged as sending the message

rcpt_to: Vec<String>

The addresses this message should be sent to

data: String

A base64 encoded RFC2822 message to send

bounce: Option<bool>

Is this message a bounce?

Implementations

impl RawMessage[src]

pub fn new<S1: Into<String>, S2: Into<String>>(
    to: &[String],
    from: S1,
    data: S2
) -> Self
[src]

Trait Implementations

impl Clone for RawMessage[src]

impl Debug for RawMessage[src]

impl<'de> Deserialize<'de> for RawMessage[src]

impl Eq for RawMessage[src]

impl PartialEq<RawMessage> for RawMessage[src]

impl Serialize for RawMessage[src]

impl StructuralEq for RawMessage[src]

impl StructuralPartialEq for RawMessage[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.