Enum libpq::result::ErrorField[][src]

#[repr(i32)]
pub enum ErrorField {
Show 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

impl Clone for ErrorField[src]

impl Copy for ErrorField[src]

impl Debug for ErrorField[src]

impl PartialEq<ErrorField> for ErrorField[src]

impl StructuralPartialEq for ErrorField[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.