pub enum NoticeLevel {
Debug,
Log,
Info,
Notice,
Warning,
}Expand description
The level of a notice, as PostgreSQL names its message levels below ERROR, in increasing order of severity.
Variants§
Implementations§
Source§impl NoticeLevel
impl NoticeLevel
Sourcepub const fn default_sqlstate(self) -> &'static str
pub const fn default_sqlstate(self) -> &'static str
The SQLSTATE of a notice whose report names none, as errstart assigns it: 01000 (warning) for a warning and 00000 (successful_completion) for every lower level.
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 Hash for NoticeLevel
impl Hash for NoticeLevel
Source§impl Ord for NoticeLevel
impl Ord for NoticeLevel
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for NoticeLevel
impl PartialEq for NoticeLevel
Source§impl PartialOrd for NoticeLevel
impl PartialOrd for NoticeLevel
impl StructuralPartialEq for NoticeLevel
Auto Trait Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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