#[non_exhaustive]pub enum NoticeSeverity {
Info,
Warning,
Error,
Unknown(String),
}Expand description
systemNotice: the notice’s level. Open; an unknown value is an
unknown-but-present level, rendered generically.
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.
Info
info: informational.
Warning
warning: something to look at.
Error
error: something failed.
Unknown(String)
A value from a newer host, kept verbatim so an older client decodes the rest of the message. Excluded from the generated schema while the enum stays declared open; never construct it with a known word.
Implementations§
Trait Implementations§
Source§impl Clone for NoticeSeverity
impl Clone for NoticeSeverity
Source§impl Debug for NoticeSeverity
impl Debug for NoticeSeverity
Source§impl<'de> Deserialize<'de> for NoticeSeverity
impl<'de> Deserialize<'de> for NoticeSeverity
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 NoticeSeverity
Source§impl PartialEq for NoticeSeverity
impl PartialEq for NoticeSeverity
Source§impl Serialize for NoticeSeverity
impl Serialize for NoticeSeverity
impl StructuralPartialEq for NoticeSeverity
Auto Trait Implementations§
impl Forget for NoticeSeverity
impl Freeze for NoticeSeverity
impl Move for NoticeSeverity
impl RefUnwindSafe for NoticeSeverity
impl Send for NoticeSeverity
impl Sync for NoticeSeverity
impl Unpin for NoticeSeverity
impl UnsafeUnpin for NoticeSeverity
impl UnwindSafe for NoticeSeverity
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