Enum tokio_postgres::types::Kind [−][src]
#[non_exhaustive]
pub enum Kind {
Simple,
Enum(Vec<String, Global>),
Pseudo,
Array(Type),
Range(Type),
Domain(Type),
Composite(Vec<Field, Global>),
}
Expand description
Represents the kind of a Postgres type.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
A simple type like VARCHAR
or INTEGER
.
An enumerated type along with its variants.
A pseudo-type.
Array(Type)
An array type along with the type of its elements.
Tuple Fields of Array
0: Type
Range(Type)
A range type along with the type of its elements.
Tuple Fields of Range
0: Type
Domain(Type)
A domain type along with its underlying type.
Tuple Fields of Domain
0: Type
A composite type along with information about its fields.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Kind
impl UnwindSafe for Kind
Blanket Implementations
Mutably borrows from an owned value. Read more