pub struct Mailtutan {Show 13 fields
pub ip: Ipv4Addr,
pub http_port: u16,
pub smtp_port: u16,
pub storage: Box<dyn Storage + 'static>,
pub ws_sender: Sender<String>,
pub http_auth: bool,
pub http_username: String,
pub http_password: String,
pub messages_limit: usize,
pub smtp_cert_path: Option<String>,
pub smtp_key_path: Option<String>,
pub smtp_auth_username: Option<String>,
pub smtp_auth_password: Option<String>,
}Fields§
§ip: Ipv4Addr§http_port: u16§smtp_port: u16§storage: Box<dyn Storage + 'static>§ws_sender: Sender<String>§http_auth: bool§http_username: String§http_password: String§messages_limit: usize§smtp_cert_path: Option<String>§smtp_key_path: Option<String>§smtp_auth_username: Option<String>§smtp_auth_password: Option<String>Implementations§
Source§impl Mailtutan
impl Mailtutan
pub fn get_api_uri(&self) -> String
pub fn get_smtp_uri(&self) -> String
pub fn init(self)
pub fn is_smtp_auth_enabled(&self) -> bool
Auto Trait Implementations§
impl Freeze for Mailtutan
impl !RefUnwindSafe for Mailtutan
impl Send for Mailtutan
impl Sync for Mailtutan
impl Unpin for Mailtutan
impl !UnwindSafe for Mailtutan
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
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