pub enum Value {
Null,
Bool(bool),
SmallInt(i16),
Integer(i64),
Char(char),
Text(String),
TextArray(Vec<String>),
IntegerArray(Vec<i64>),
Bytes(Vec<u8>),
}Expand description
A SQL value variant supported by the catalog reader.
Variants§
Null
SQL NULL.
Bool(bool)
boolean.
SmallInt(i16)
smallint.
Integer(i64)
integer / bigint / any oid we don’t unpack further.
Char(char)
Single-character “char” (used by pg_constraint.contype, etc.).
Text(String)
Text-like (text, name, varchar).
TextArray(Vec<String>)
text[] / name[].
IntegerArray(Vec<i64>)
int2[] / int4[] / int8[].
Bytes(Vec<u8>)
Bytes (used for pg_node_tree payloads we don’t decode in IR).
Trait Implementations§
impl Eq for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more