Enum pgrepr::Type [−][src]
pub enum Type {
}
Expand description
The type of a Value
.
Variants
Array(Box<Type>)
A variable-length multidimensional array of values.
Bool
A boolean value.
Bytea
A byte array, i.e., a variable-length binary string.
Date
A date.
Float4
A 4-byte floating point number.
Float8
An 8-byte floating point number.
Int2
A 2-byte signed integer.
Int4
A 4-byte signed integer.
Int8
An 8-byte signed integer.
Interval
A time interval.
Jsonb
A binary JSON blob.
List(Box<Type>)
A sequence of homogeneous values.
Map
A map with text keys and homogeneous values.
Numeric
An arbitrary precision number.
Oid
An object identifier.
Record(Vec<Type>)
A sequence of heterogeneous values.
Text
A variable-length string.
Char
A fixed-length string.
VarChar
A variable-length string with an optional limit.
Time
A time of day without a day.
Timestamp
A date and time, without a timezone.
TimestampTz
A date and time, with a timezone.
Uuid
A universally unique identifier.
RegProc
A function name.
RegType
A type name.
RegClass
A class name.
Implementations
Returns the type corresponding to the provided OID, if the OID is known.
Returns the number of bytes in the binary representation of this type, or -1 if the type has a variable-length representation.
Provides a ScalarType
from self
, but without necessarily
associating any meaningful values within the returned type.
For example Type::Numeric
returns SScalarType::Numeric { scale: None }
,
meaning that its scale might need values from elsewhere.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Type
impl UnwindSafe for Type
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
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