#[non_exhaustive]pub enum NoticeLevel {
Success,
Warning,
Error,
}Available on crate feature
document only.Expand description
The severity of a Notice. It picks the label (success, warning, or
error) and the style of the label.
A level can join the set in a minor release, so a match on it outside ctl-core ends with a wildcard arm.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Success
A successful outcome.
Warning
A warning that does not fail the command.
Error
A failed outcome.
Trait Implementations§
Source§impl Clone for NoticeLevel
impl Clone for NoticeLevel
impl Copy for NoticeLevel
Source§impl Debug for NoticeLevel
impl Debug for NoticeLevel
impl Eq for NoticeLevel
Source§impl PartialEq for NoticeLevel
impl PartialEq for NoticeLevel
impl StructuralPartialEq for NoticeLevel
Auto Trait Implementations§
impl Forget for NoticeLevel
impl Freeze for NoticeLevel
impl RefUnwindSafe for NoticeLevel
impl Send for NoticeLevel
impl Sync for NoticeLevel
impl Unpin for NoticeLevel
impl UnsafeUnpin for NoticeLevel
impl UnwindSafe for NoticeLevel
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