pub struct Notice {
pub severity: Severity,
pub code: SqlState,
pub message: String,
pub location: Option<usize>,
}Expand description
A notice or a warning of the lexer or the parser, for example for an identifier that is too long.
Fields§
§severity: SeverityThe severity, NOTICE or WARNING.
code: SqlStateThe SQLSTATE, for example 42622.
message: StringThe message, as PostgreSQL writes it.
location: Option<usize>The byte offset in the text that the notice points to, or None.
Trait Implementations§
impl Eq for Notice
impl StructuralPartialEq for Notice
Auto Trait Implementations§
impl Freeze for Notice
impl RefUnwindSafe for Notice
impl Send for Notice
impl Sync for Notice
impl Unpin for Notice
impl UnsafeUnpin for Notice
impl UnwindSafe for Notice
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