pub enum WarningAction {
Generate,
Defer,
Ignore,
Close,
}Expand description
One decision a surface can offer for a warning (data-model.md §5).
The list is the whole vocabulary: a warning is a question with a closed set of answers, so no surface invents a fifth one, and every answer is an explicit action that only a confirmed operation carries out.
Variants§
Generate
Create the occurrence (WP04, confirmed).
Defer
Move the candidate on without creating it (WP05).
Ignore
Record the candidate as skipped (WP05).
Close
Close the warning without deciding (C-003: closing changes nothing).
Implementations§
Trait Implementations§
Source§impl Clone for WarningAction
impl Clone for WarningAction
impl Copy for WarningAction
Source§impl Debug for WarningAction
impl Debug for WarningAction
impl Eq for WarningAction
Source§impl Hash for WarningAction
impl Hash for WarningAction
Source§impl PartialEq for WarningAction
impl PartialEq for WarningAction
impl StructuralPartialEq for WarningAction
Auto Trait Implementations§
impl Freeze for WarningAction
impl RefUnwindSafe for WarningAction
impl Send for WarningAction
impl Sync for WarningAction
impl Unpin for WarningAction
impl UnsafeUnpin for WarningAction
impl UnwindSafe for WarningAction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more