Enum libpq::result::ErrorField [−][src]
#[repr(i32)]
pub enum ErrorField {
Show 18 variants
Severity,
SeverityNonlocalized,
Sqlstate,
MessagePrimary,
MessageDetail,
MessageHint,
StatementPosition,
InternalPosition,
InternalQuery,
Context,
SchemaName,
TableName,
ColumnName,
DatatypeName,
ConstraintName,
SourceFile,
SourceLine,
SourceFunction,
}
Variants
Severity
The severity.
SeverityNonlocalized
The severity.
Sqlstate
The SQLSTATE code for the error.
MessagePrimary
The primary human-readable error message.
MessageDetail
An optional secondary error message carrying more detail about the problem.
MessageHint
An optional suggestion what to do about the problem.
StatementPosition
A string containing a decimal integer indicating an error cursor position as an index into the original statement string.
InternalPosition
This is defined the same as the StatementPosition
field, but it is used when the
cursor position refers to an internally generated command rather than the one submitted by
the client.
InternalQuery
The text of a failed internally-generated command.
Context
An indication of the context in which the error occurred.
SchemaName
If the error was associated with a specific database object, the name of the schema containing that object, if any.
TableName
If the error was associated with a specific table, the name of the table.
ColumnName
If the error was associated with a specific table column, the name of the column.
DatatypeName
If the error was associated with a specific data type, the name of the data type.
ConstraintName
If the error was associated with a specific constraint, the name of the constraint.
SourceFile
The file name of the source-code location where the error was reported.
SourceLine
The line number of the source-code location where the error was reported.
SourceFunction
The name of the source-code function reporting the error.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ErrorField
impl Send for ErrorField
impl Sync for ErrorField
impl Unpin for ErrorField
impl UnwindSafe for ErrorField
Blanket Implementations
Mutably borrows from an owned value. Read more