Struct config::PrivatEmailConfig [−][src]
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: StringForwarded emails will be received from this SES verified email address
to_email: StringRecipient 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]
F: ToString,
T: ToString,
S: ToString,
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]
fn clone(&self) -> PrivatEmailConfig[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[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]
PrivatEmailConfig: Default,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl PartialEq<PrivatEmailConfig> for PrivatEmailConfig[src]
fn eq(&self, other: &PrivatEmailConfig) -> bool[src]
fn ne(&self, other: &PrivatEmailConfig) -> bool[src]
impl Serialize for PrivatEmailConfig[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl StructuralPartialEq for PrivatEmailConfig[src]
Auto Trait Implementations
impl RefUnwindSafe for PrivatEmailConfig
impl Send for PrivatEmailConfig
impl Sync for PrivatEmailConfig
impl Unpin for PrivatEmailConfig
impl UnwindSafe for PrivatEmailConfig
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,
pub 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> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
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.
pub 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>,