Enum postgres_types::Kind
source · #[non_exhaustive]pub enum Kind {
Simple,
Enum(Vec<String>),
Pseudo,
Array(Type),
Range(Type),
Multirange(Type),
Domain(Type),
Composite(Vec<Field>),
}
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.
Simple
A simple type like VARCHAR
or INTEGER
.
Enum(Vec<String>)
An enumerated type along with its variants.
Pseudo
A pseudo-type.
Array(Type)
An array type along with the type of its elements.
Range(Type)
A range type along with the type of its elements.
Multirange(Type)
A multirange type along with the type of its elements.
Domain(Type)
A domain type along with its underlying type.
Composite(Vec<Field>)
A composite type along with information about its fields.
Trait Implementations§
source§impl PartialEq for Kind
impl PartialEq for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnwindSafe for Kind
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)