Enum postgres_util::PgScalarType[][src]

pub enum PgScalarType {
    Simple(PgType),
    Numeric(Option<PgNumericMod>),
    NumericArray(Option<PgNumericMod>),
    BPChar {
        length: i32,
    },
    BPCharArray {
        length: i32,
    },
    VarChar {
        length: i32,
    },
    VarCharArray {
        length: i32,
    },
}

Variants

Simple(PgType)

Tuple Fields

0: PgType

Numeric(Option<PgNumericMod>)

Tuple Fields

Represents a numeric type with optional scale and presicion

NumericArray(Option<PgNumericMod>)

Tuple Fields

Represents a numeric array type with optional scale and presicion

BPChar

Fields

length: i32

BPCharArray

Fields

length: i32

VarChar

Fields

length: i32

VarCharArray

Fields

length: i32

Trait Implementations

Formats the value using the given formatter. Read more

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

Formats an object with the “alternative” format ({:#}) and returns it.

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

Converts the given value to a String. 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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more