ConfigMain

Struct ConfigMain 

Source
pub struct ConfigMain {
Show 21 fields pub env: Option<String>, pub site_name: Option<String>, pub site_url: Option<String>, pub enable_link_previews: Option<bool>, pub restrict_link_previews: Option<String>, pub enable_client_performance_debugging: Option<bool>, pub enable_gif_picker: Option<bool>, pub enable_custom_emoji: Option<bool>, pub enable_emoji_picker: Option<bool>, pub time_between_user_typing_updates_milliseconds: Option<i64>, pub enable_file_search: Option<bool>, pub enable_user_typing_messages: Option<bool>, pub enable_user_statuses: Option<bool>, pub enable_email_invitations: Option<bool>, pub enable_svgs: Option<bool>, pub allow_persistent_notifications: Option<bool>, pub persistent_notification_interval_minutes: Option<i32>, pub persistent_notification_max_count: Option<i32>, pub persistent_notification_max_recipients: Option<i32>, pub feature_flag_sync_interval_seconds: Option<i32>, pub allow_synced_drafts: Option<bool>,
}

Fields§

§env: Option<String>§site_name: Option<String>§site_url: Option<String>§enable_link_previews: Option<bool>§restrict_link_previews: Option<String>§enable_client_performance_debugging: Option<bool>§enable_gif_picker: Option<bool>§enable_custom_emoji: Option<bool>§enable_emoji_picker: Option<bool>§time_between_user_typing_updates_milliseconds: Option<i64>§enable_file_search: Option<bool>§enable_user_typing_messages: Option<bool>§enable_user_statuses: Option<bool>§enable_email_invitations: Option<bool>§enable_svgs: Option<bool>§allow_persistent_notifications: Option<bool>§persistent_notification_interval_minutes: Option<i32>§persistent_notification_max_count: Option<i32>§persistent_notification_max_recipients: Option<i32>§feature_flag_sync_interval_seconds: Option<i32>§allow_synced_drafts: Option<bool>

Implementations§

Source§

impl ConfigMain

Source

pub fn env(&self) -> &str

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

Source

pub fn site_name(&self) -> &str

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

Source

pub fn site_url(&self) -> &str

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

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

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

Source

pub fn enable_client_performance_debugging(&self) -> bool

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

Source

pub fn enable_gif_picker(&self) -> bool

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

Source

pub fn enable_custom_emoji(&self) -> bool

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

Source

pub fn enable_emoji_picker(&self) -> bool

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

Source

pub fn time_between_user_typing_updates_milliseconds(&self) -> i64

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

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

Source

pub fn enable_user_typing_messages(&self) -> bool

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

Source

pub fn enable_user_statuses(&self) -> bool

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

Source

pub fn enable_email_invitations(&self) -> bool

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

Source

pub fn enable_svgs(&self) -> bool

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

Source

pub fn allow_persistent_notifications(&self) -> bool

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

Source

pub fn persistent_notification_interval_minutes(&self) -> i32

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

Source

pub fn persistent_notification_max_count(&self) -> i32

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

Source

pub fn persistent_notification_max_recipients(&self) -> i32

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

Source

pub fn feature_flag_sync_interval_seconds(&self) -> i32

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

Source

pub fn allow_synced_drafts(&self) -> bool

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

Trait Implementations§

Source§

impl Clone for ConfigMain

Source§

fn clone(&self) -> ConfigMain

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 ConfigMain

Source§

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

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

impl Default for ConfigMain

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for ConfigMain

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 ConfigMain

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 ConfigMain

Source§

fn eq(&self, other: &ConfigMain) -> 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 ConfigMain

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 ConfigMain

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>,