#[repr(u8)]pub enum DataTypeSnapshot {
Show 19 variants
Blob = 80,
Boolean = 48,
Custom(Box<CustomDataTypeSnapshot>),
Date = 64,
Datetime = 65,
Decimal = 34,
Float32 = 32,
Float64 = 33,
Int16 = 2,
Int32 = 3,
Int64 = 4,
Int8 = 1,
Json = 96,
Text = 81,
Uuid = 82,
Uint16 = 17,
Uint32 = 18,
Uint64 = 19,
Uint8 = 16,
}Expand description
Stable, tag-keyed encoding of a column data type.
The discriminants are part of the on-disk format and must not be reused or reordered; new variants must take a fresh tag.
Variants§
Blob = 80
Arbitrary binary blob.
Boolean = 48
Boolean value.
Custom(Box<CustomDataTypeSnapshot>)
User-defined custom data type, identified by name + on-disk wire layout.
Date = 64
Calendar date with no time component.
Datetime = 65
Date and time.
Decimal = 34
Arbitrary-precision decimal number.
Float32 = 32
32-bit IEEE-754 floating point.
Float64 = 33
64-bit IEEE-754 floating point.
Int16 = 2
Signed 16-bit integer.
Int32 = 3
Signed 32-bit integer.
Int64 = 4
Signed 64-bit integer.
Int8 = 1
Signed 8-bit integer.
Json = 96
JSON document.
Text = 81
UTF-8 text string.
Uuid = 82
UUID value.
Uint16 = 17
Unsigned 16-bit integer.
Uint32 = 18
Unsigned 32-bit integer.
Uint64 = 19
Unsigned 64-bit integer.
Uint8 = 16
Unsigned 8-bit integer.
Trait Implementations§
Source§impl Clone for DataTypeSnapshot
impl Clone for DataTypeSnapshot
Source§fn clone(&self) -> DataTypeSnapshot
fn clone(&self) -> DataTypeSnapshot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DataTypeSnapshot
impl Debug for DataTypeSnapshot
Source§impl<'de> Deserialize<'de> for DataTypeSnapshot
impl<'de> Deserialize<'de> for DataTypeSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Encode for DataTypeSnapshot
impl Encode for DataTypeSnapshot
Source§const ALIGNMENT: PageOffset = 32
const ALIGNMENT: PageOffset = 32
The alignment requirement in bytes for the data type. Read more
Source§impl PartialEq for DataTypeSnapshot
impl PartialEq for DataTypeSnapshot
Source§impl Serialize for DataTypeSnapshot
impl Serialize for DataTypeSnapshot
impl Eq for DataTypeSnapshot
impl StructuralPartialEq for DataTypeSnapshot
Auto Trait Implementations§
impl Freeze for DataTypeSnapshot
impl RefUnwindSafe for DataTypeSnapshot
impl Send for DataTypeSnapshot
impl Sync for DataTypeSnapshot
impl Unpin for DataTypeSnapshot
impl UnsafeUnpin for DataTypeSnapshot
impl UnwindSafe for DataTypeSnapshot
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