Struct config::PrivatEmailConfig[][src]

pub struct PrivatEmailConfig {
    pub from_email: String,
    pub to_email: String,
    pub subject_prefix: Option<String>,
    pub email_bucket: Option<String>,
    pub email_key_prefix: Option<String>,
}

Config object for PrivatEmail.

Implements serde::Deserialize and serde::Serialize and can be composed with other consumer configs. PrivatEmailConfig: from_email: Forwarded emails will be received from this SES verified email address. To match all email addresses on a domain, use a key without the name part of the email(example.com) to_email: Recipient email address. Example: jon@doe.example subject_prefix: Forwarded emails subject will contain this prefix. email_bucket: S3 bucket to store raw SES emails. email_key_prefix: S3 key prefix where SES stores emails.

Fields

from_email: String

Forwarded emails will be received from this SES verified email address

to_email: String

Recipient email address that receives the forwarded SES email

subject_prefix: Option<String>

Forwarded emails subject will contain this prefix

email_bucket: Option<String>

S3 bucket to store raw SES emails

email_key_prefix: Option<String>

S3 key prefix where SES stores emails

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. As long as you have the from_email and to_email environment setup; this should work

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

Create a new PrivatEmailConfig struct.PrivatEmailConfig You can leave the s3 bucket related fields empty since it’s not currently being used

Trait Implementations

impl Clone for PrivatEmailConfig[src]

impl Debug for PrivatEmailConfig[src]

impl Default for PrivatEmailConfig[src]

Create default method for PrivatEmailConfig struct

impl<'de> Deserialize<'de> for PrivatEmailConfig where
    PrivatEmailConfig: Default
[src]

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.