pub struct OptionMutationOutcome {
pub name: String,
pub scope: OptionScopeSelector,
pub known_option: Option<OptionName>,
pub old_explicit: Option<String>,
pub new_explicit: Option<String>,
pub changed: bool,
pub notifications: Vec<OptionNotification>,
pub related: Vec<OptionMutationOutcome>,
}Expand description
Outcome for a successful option mutation.
Fields§
§name: StringThe canonical option name.
scope: OptionScopeSelectorThe exact scope mutated by this outcome.
known_option: Option<OptionName>The known wire option, when the option is part of the closed V1 registry.
old_explicit: Option<String>Exact explicit value before the mutation at the mutated scope.
new_explicit: Option<String>Exact explicit value after the mutation at the mutated scope.
changed: boolWhether the exact explicit value changed.
Idempotent sets and no-op unsets return false; event producers should
use this bit to avoid echoing mutations that did not change pane state.
notifications: Vec<OptionNotification>Side effects the server may react to.
Additional exact-scope mutations caused by this operation.
Trait Implementations§
Source§impl Clone for OptionMutationOutcome
impl Clone for OptionMutationOutcome
Source§fn clone(&self) -> OptionMutationOutcome
fn clone(&self) -> OptionMutationOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OptionMutationOutcome
impl Debug for OptionMutationOutcome
impl Eq for OptionMutationOutcome
Source§impl PartialEq for OptionMutationOutcome
impl PartialEq for OptionMutationOutcome
impl StructuralPartialEq for OptionMutationOutcome
Auto Trait Implementations§
impl Freeze for OptionMutationOutcome
impl RefUnwindSafe for OptionMutationOutcome
impl Send for OptionMutationOutcome
impl Sync for OptionMutationOutcome
impl Unpin for OptionMutationOutcome
impl UnsafeUnpin for OptionMutationOutcome
impl UnwindSafe for OptionMutationOutcome
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