#[non_exhaustive]pub struct ErrorInfo {
pub severity: String,
pub code: String,
pub message: String,
pub detail: Option<String>,
pub hint: Option<String>,
pub position: Option<String>,
pub internal_position: Option<String>,
pub internal_query: Option<String>,
pub where_context: Option<String>,
pub file_name: Option<String>,
pub line: Option<usize>,
pub routine: Option<String>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.severity: String§code: String§message: String§detail: Option<String>§hint: Option<String>§position: Option<String>§internal_position: Option<String>§internal_query: Option<String>§where_context: Option<String>§file_name: Option<String>§line: Option<usize>§routine: Option<String>Implementations§
Trait Implementations§
Source§impl From<ErrorInfo> for ErrorResponse
impl From<ErrorInfo> for ErrorResponse
Source§fn from(ei: ErrorInfo) -> ErrorResponse
fn from(ei: ErrorInfo) -> ErrorResponse
Converts to this type from the input type.
Source§impl From<ErrorInfo> for NoticeResponse
impl From<ErrorInfo> for NoticeResponse
Source§fn from(ei: ErrorInfo) -> NoticeResponse
fn from(ei: ErrorInfo) -> NoticeResponse
Converts to this type from the input type.
Source§impl From<ErrorResponse> for ErrorInfo
impl From<ErrorResponse> for ErrorInfo
Source§fn from(value: ErrorResponse) -> Self
fn from(value: ErrorResponse) -> Self
Converts to this type from the input type.
Source§impl From<PgWireError> for ErrorInfo
impl From<PgWireError> for ErrorInfo
Source§fn from(error: PgWireError) -> Self
fn from(error: PgWireError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ErrorInfo
impl RefUnwindSafe for ErrorInfo
impl Send for ErrorInfo
impl Sync for ErrorInfo
impl Unpin for ErrorInfo
impl UnwindSafe for ErrorInfo
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