Struct config::PrivatEmailConfig[][src]

pub struct PrivatEmailConfig {
    pub from_email: String,
    pub to_email: String,
    pub black_list: Option<Vec<String>>,
}

Config object for PrivatEmail.

Implements serde::Deserialize and serde::Serialize and can be composed with other consumer configs. PrivatEmailConfig: from_email: Original Recipient Email from Verified SES Domain to_email: Recipient SES verified email address which receives the forwarded email black_list: Black listed email addresses.

Fields

from_email: String

Original Recipient Email from Verified SES Domain

to_email: String

Recipient email address that receives the forwarded SES email

black_list: Option<Vec<String>>

Black Listed email addresses

Implementations

impl PrivatEmailConfig[src]

Create a new PrivatEmailConfig client struct from environment variables.

pub fn new_from_env() -> Self[src]

Create new PrivatEmailConfig struct from environment variables.

pub fn new<F, T, B>(from_email: F, to_email: T, black_list: B) -> Self where
    F: ToString,
    T: ToString,
    B: ToString
[src]

Create a new PrivatEmailConfig struct

Trait Implementations

impl Clone for PrivatEmailConfig[src]

impl Debug for PrivatEmailConfig[src]

impl Default for PrivatEmailConfig[src]

Default configuration for PrivatEmailConfig

impl PartialEq<PrivatEmailConfig> for PrivatEmailConfig[src]

impl Serialize for PrivatEmailConfig[src]

impl StructuralPartialEq for PrivatEmailConfig[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> From<T> 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.