pub struct ManagedEmailSender { /* private fields */ }Expand description
Per-tenant managed sender. The factory constructs one of these for each tenant whose config selects the managed mode.
Implementations§
Source§impl ManagedEmailSender
impl ManagedEmailSender
Sourcepub fn new(
deployment: &ManagedEmailConfig,
from_override: Option<String>,
from_display_name: String,
branding: EmailBranding,
) -> Result<Self, AuthError>
pub fn new( deployment: &ManagedEmailConfig, from_override: Option<String>, from_display_name: String, branding: EmailBranding, ) -> Result<Self, AuthError>
Build a sender. from_override is the tenant’s optional
managed_from_address; from_display_name is the tenant’s
resolved display name (typically tenants.name).
Trait Implementations§
Source§impl EmailSender for ManagedEmailSender
impl EmailSender for ManagedEmailSender
Auto Trait Implementations§
impl !RefUnwindSafe for ManagedEmailSender
impl !UnwindSafe for ManagedEmailSender
impl Freeze for ManagedEmailSender
impl Send for ManagedEmailSender
impl Sync for ManagedEmailSender
impl Unpin for ManagedEmailSender
impl UnsafeUnpin for ManagedEmailSender
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more