pub struct AutosaveSettings {
pub private_chat_settings: ScopeAutosaveSettings,
pub group_settings: ScopeAutosaveSettings,
pub channel_settings: ScopeAutosaveSettings,
pub exceptions: Vec<AutosaveSettingsException>,
}
Expand description
Describes autosave settings
Fields§
§private_chat_settings: ScopeAutosaveSettings
Default autosave settings for private chats
group_settings: ScopeAutosaveSettings
Default autosave settings for basic group and supergroup chats
channel_settings: ScopeAutosaveSettings
Default autosave settings for channel chats
exceptions: Vec<AutosaveSettingsException>
Autosave settings for specific chats
Trait Implementations§
Source§impl Clone for AutosaveSettings
impl Clone for AutosaveSettings
Source§fn clone(&self) -> AutosaveSettings
fn clone(&self) -> AutosaveSettings
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AutosaveSettings
impl Debug for AutosaveSettings
Source§impl Default for AutosaveSettings
impl Default for AutosaveSettings
Source§fn default() -> AutosaveSettings
fn default() -> AutosaveSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AutosaveSettings
impl<'de> Deserialize<'de> for AutosaveSettings
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AutosaveSettings
impl PartialEq for AutosaveSettings
Source§impl Serialize for AutosaveSettings
impl Serialize for AutosaveSettings
impl StructuralPartialEq for AutosaveSettings
Auto Trait Implementations§
impl Freeze for AutosaveSettings
impl RefUnwindSafe for AutosaveSettings
impl Send for AutosaveSettings
impl Sync for AutosaveSettings
impl Unpin for AutosaveSettings
impl UnwindSafe for AutosaveSettings
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