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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.