ConfigEmail

Struct ConfigEmail 

Source
pub struct ConfigEmail {
Show 26 fields pub send_email_notifications: Option<bool>, pub require_email_verification: Option<bool>, pub feedback_email: Option<String>, pub reply_to_address: Option<String>, pub enable_smtp_auth: Option<bool>, pub smtp_username: Option<String>, pub smtp_password: Option<String>, pub smtp_server: Option<String>, pub smtp_port: Option<String>, pub smtp_server_timeout: Option<i32>, pub connection_security: Option<String>, pub send_push_notifications: Option<bool>, pub push_notification_server: Option<String>, pub push_notification_contents: Option<String>, pub push_notification_buffer: Option<i32>, pub enable_email_batching: Option<bool>, pub email_batching_buffer_size: Option<i32>, pub email_batching_interval: Option<i32>, pub skip_server_certificate_verification: Option<bool>, pub email_notification_contents_type: Option<String>, pub login_button_color: Option<String>, pub login_button_border_color: Option<String>, pub login_button_text_color: Option<String>, pub rate_limiting_memory_size: Option<i32>, pub rate_limiting_per_hour: Option<i32>, pub rate_limiting_max_burst: Option<i32>,
}

Fields§

§send_email_notifications: Option<bool>§require_email_verification: Option<bool>§feedback_email: Option<String>§reply_to_address: Option<String>§enable_smtp_auth: Option<bool>§smtp_username: Option<String>§smtp_password: Option<String>§smtp_server: Option<String>§smtp_port: Option<String>§smtp_server_timeout: Option<i32>§connection_security: Option<String>§send_push_notifications: Option<bool>§push_notification_server: Option<String>§push_notification_contents: Option<String>§push_notification_buffer: Option<i32>§enable_email_batching: Option<bool>§email_batching_buffer_size: Option<i32>§email_batching_interval: Option<i32>§skip_server_certificate_verification: Option<bool>§email_notification_contents_type: Option<String>§login_button_color: Option<String>§login_button_border_color: Option<String>§login_button_text_color: Option<String>§rate_limiting_memory_size: Option<i32>§rate_limiting_per_hour: Option<i32>§rate_limiting_max_burst: Option<i32>

Implementations§

Source§

impl ConfigEmail

Source

pub fn send_email_notifications(&self) -> bool

Returns the value of send_email_notifications, or the default value if send_email_notifications is unset.

Source

pub fn require_email_verification(&self) -> bool

Returns the value of require_email_verification, or the default value if require_email_verification is unset.

Source

pub fn feedback_email(&self) -> &str

Returns the value of feedback_email, or the default value if feedback_email is unset.

Source

pub fn reply_to_address(&self) -> &str

Returns the value of reply_to_address, or the default value if reply_to_address is unset.

Source

pub fn enable_smtp_auth(&self) -> bool

Returns the value of enable_smtp_auth, or the default value if enable_smtp_auth is unset.

Source

pub fn smtp_username(&self) -> &str

Returns the value of smtp_username, or the default value if smtp_username is unset.

Source

pub fn smtp_password(&self) -> &str

Returns the value of smtp_password, or the default value if smtp_password is unset.

Source

pub fn smtp_server(&self) -> &str

Returns the value of smtp_server, or the default value if smtp_server is unset.

Source

pub fn smtp_port(&self) -> &str

Returns the value of smtp_port, or the default value if smtp_port is unset.

Source

pub fn smtp_server_timeout(&self) -> i32

Returns the value of smtp_server_timeout, or the default value if smtp_server_timeout is unset.

Source

pub fn connection_security(&self) -> &str

Returns the value of connection_security, or the default value if connection_security is unset.

Source

pub fn send_push_notifications(&self) -> bool

Returns the value of send_push_notifications, or the default value if send_push_notifications is unset.

Source

pub fn push_notification_server(&self) -> &str

Returns the value of push_notification_server, or the default value if push_notification_server is unset.

Source

pub fn push_notification_contents(&self) -> &str

Returns the value of push_notification_contents, or the default value if push_notification_contents is unset.

Source

pub fn push_notification_buffer(&self) -> i32

Returns the value of push_notification_buffer, or the default value if push_notification_buffer is unset.

Source

pub fn enable_email_batching(&self) -> bool

Returns the value of enable_email_batching, or the default value if enable_email_batching is unset.

Source

pub fn email_batching_buffer_size(&self) -> i32

Returns the value of email_batching_buffer_size, or the default value if email_batching_buffer_size is unset.

Source

pub fn email_batching_interval(&self) -> i32

Returns the value of email_batching_interval, or the default value if email_batching_interval is unset.

Source

pub fn skip_server_certificate_verification(&self) -> bool

Returns the value of skip_server_certificate_verification, or the default value if skip_server_certificate_verification is unset.

Source

pub fn email_notification_contents_type(&self) -> &str

Returns the value of email_notification_contents_type, or the default value if email_notification_contents_type is unset.

Source

pub fn login_button_color(&self) -> &str

Returns the value of login_button_color, or the default value if login_button_color is unset.

Source

pub fn login_button_border_color(&self) -> &str

Returns the value of login_button_border_color, or the default value if login_button_border_color is unset.

Source

pub fn login_button_text_color(&self) -> &str

Returns the value of login_button_text_color, or the default value if login_button_text_color is unset.

Source

pub fn rate_limiting_memory_size(&self) -> i32

Returns the value of rate_limiting_memory_size, or the default value if rate_limiting_memory_size is unset.

Source

pub fn rate_limiting_per_hour(&self) -> i32

Returns the value of rate_limiting_per_hour, or the default value if rate_limiting_per_hour is unset.

Source

pub fn rate_limiting_max_burst(&self) -> i32

Returns the value of rate_limiting_max_burst, or the default value if rate_limiting_max_burst is unset.

Trait Implementations§

Source§

impl Clone for ConfigEmail

Source§

fn clone(&self) -> ConfigEmail

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ConfigEmail

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ConfigEmail

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ConfigEmail

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Message for ConfigEmail

Source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
Source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
Source§

fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message to a buffer. Read more
Source§

fn encode_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message to a newly allocated buffer.
Source§

fn encode_length_delimited( &self, buf: &mut impl BufMut, ) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message with a length-delimiter to a buffer. Read more
Source§

fn encode_length_delimited_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message with a length-delimiter to a newly allocated buffer.
Source§

fn decode(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes an instance of the message from a buffer. Read more
Source§

fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes a length-delimited instance of the message from the buffer.
Source§

fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
Source§

fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
Source§

impl PartialEq for ConfigEmail

Source§

fn eq(&self, other: &ConfigEmail) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ConfigEmail

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ConfigEmail

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<L> LayerExt<L> for L

Source§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in Layered.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,