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
impl ConfigMain
Sourcepub fn site_name(&self) -> &str
pub fn site_name(&self) -> &str
Returns the value of site_name, or the default value if site_name is unset.
Sourcepub fn site_url(&self) -> &str
pub fn site_url(&self) -> &str
Returns the value of site_url, or the default value if site_url is unset.
Sourcepub fn enable_link_previews(&self) -> bool
pub fn enable_link_previews(&self) -> bool
Returns the value of enable_link_previews, or the default value if enable_link_previews is unset.
Sourcepub fn restrict_link_previews(&self) -> &str
pub fn restrict_link_previews(&self) -> &str
Returns the value of restrict_link_previews, or the default value if restrict_link_previews is unset.
Sourcepub fn enable_client_performance_debugging(&self) -> bool
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.
Sourcepub fn enable_gif_picker(&self) -> bool
pub fn enable_gif_picker(&self) -> bool
Returns the value of enable_gif_picker, or the default value if enable_gif_picker is unset.
Sourcepub fn enable_custom_emoji(&self) -> bool
pub fn enable_custom_emoji(&self) -> bool
Returns the value of enable_custom_emoji, or the default value if enable_custom_emoji is unset.
Sourcepub fn enable_emoji_picker(&self) -> bool
pub fn enable_emoji_picker(&self) -> bool
Returns the value of enable_emoji_picker, or the default value if enable_emoji_picker is unset.
Sourcepub fn time_between_user_typing_updates_milliseconds(&self) -> i64
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.
Sourcepub fn enable_file_search(&self) -> bool
pub fn enable_file_search(&self) -> bool
Returns the value of enable_file_search, or the default value if enable_file_search is unset.
Sourcepub fn enable_user_typing_messages(&self) -> bool
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.
Sourcepub fn enable_user_statuses(&self) -> bool
pub fn enable_user_statuses(&self) -> bool
Returns the value of enable_user_statuses, or the default value if enable_user_statuses is unset.
Sourcepub fn enable_email_invitations(&self) -> bool
pub fn enable_email_invitations(&self) -> bool
Returns the value of enable_email_invitations, or the default value if enable_email_invitations is unset.
Sourcepub fn enable_svgs(&self) -> bool
pub fn enable_svgs(&self) -> bool
Returns the value of enable_svgs, or the default value if enable_svgs is unset.
Sourcepub fn allow_persistent_notifications(&self) -> bool
pub fn allow_persistent_notifications(&self) -> bool
Returns the value of allow_persistent_notifications, or the default value if allow_persistent_notifications is unset.
Sourcepub fn persistent_notification_interval_minutes(&self) -> i32
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.
Sourcepub fn persistent_notification_max_count(&self) -> i32
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.
Sourcepub fn persistent_notification_max_recipients(&self) -> i32
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.
Sourcepub fn feature_flag_sync_interval_seconds(&self) -> i32
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.
Sourcepub fn allow_synced_drafts(&self) -> bool
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
impl Clone for ConfigMain
Source§fn clone(&self) -> ConfigMain
fn clone(&self) -> ConfigMain
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConfigMain
impl Debug for ConfigMain
Source§impl Default for ConfigMain
impl Default for ConfigMain
Source§impl<'de> Deserialize<'de> for ConfigMain
impl<'de> Deserialize<'de> for ConfigMain
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Message for ConfigMain
impl Message for ConfigMain
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for ConfigMain
impl PartialEq for ConfigMain
Source§impl Serialize for ConfigMain
impl Serialize for ConfigMain
impl StructuralPartialEq for ConfigMain
Auto Trait Implementations§
impl Freeze for ConfigMain
impl RefUnwindSafe for ConfigMain
impl Send for ConfigMain
impl Sync for ConfigMain
impl Unpin for ConfigMain
impl UnwindSafe for ConfigMain
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request