#[non_exhaustive]pub struct SettingsFlags {
pub history: Option<bool>,
}Expand description
Reporting flags on the Settings message.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.history: Option<bool>Whether to enable history message reporting. Spec default: true.
Implementations§
Source§impl SettingsFlags
impl SettingsFlags
Sourcepub fn with_history(history: bool) -> Self
pub fn with_history(history: bool) -> Self
Construct with the given history flag.
Trait Implementations§
Source§impl Clone for SettingsFlags
impl Clone for SettingsFlags
impl Copy for SettingsFlags
Source§impl Debug for SettingsFlags
impl Debug for SettingsFlags
Source§impl<'de> Deserialize<'de> for SettingsFlags
impl<'de> Deserialize<'de> for SettingsFlags
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
impl Eq for SettingsFlags
Source§impl PartialEq for SettingsFlags
impl PartialEq for SettingsFlags
Source§impl Serialize for SettingsFlags
impl Serialize for SettingsFlags
impl StructuralPartialEq for SettingsFlags
Auto Trait Implementations§
impl Freeze for SettingsFlags
impl RefUnwindSafe for SettingsFlags
impl Send for SettingsFlags
impl Sync for SettingsFlags
impl Unpin for SettingsFlags
impl UnsafeUnpin for SettingsFlags
impl UnwindSafe for SettingsFlags
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