pub struct SettingsWrite {
pub answer: Value,
pub committed: Option<Value>,
}Expand description
The outcome of SettingsStore::set.
Fields§
§answer: ValueThe answer to hand back to the renderer.
committed: Option<Value>The committed settings object when the settings document (not the explorer record) was written, so the host can apply side effects such as the diagnostics gate.
Implementations§
Source§impl SettingsWrite
impl SettingsWrite
Sourcepub fn diagnostics_enabled(&self) -> Option<bool>
pub fn diagnostics_enabled(&self) -> Option<bool>
The diagnostics choice in the committed settings document (default on), or None when the
write did not touch the settings document.
Trait Implementations§
Auto Trait Implementations§
impl Forget for SettingsWrite
impl Freeze for SettingsWrite
impl Move for SettingsWrite
impl RefUnwindSafe for SettingsWrite
impl Send for SettingsWrite
impl Sync for SettingsWrite
impl Unpin for SettingsWrite
impl UnsafeUnpin for SettingsWrite
impl UnwindSafe for SettingsWrite
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