#[repr(u8)]pub enum BinaryDataType {
Boolean = 0,
Int32 = 1,
Int64 = 2,
Float64 = 3,
String = 4,
DateTime = 5,
Bytes = 6,
Jsonb = 7,
}Expand description
Data type IDs for binary encoding
Variants§
Implementations§
Source§impl BinaryDataType
impl BinaryDataType
Sourcepub fn fixed_size(self) -> usize
pub fn fixed_size(self) -> usize
Get the fixed size in bytes for this data type
Sourcepub fn is_variable_length(self) -> bool
pub fn is_variable_length(self) -> bool
Check if this type uses variable-length storage
Trait Implementations§
Source§impl Clone for BinaryDataType
impl Clone for BinaryDataType
Source§fn clone(&self) -> BinaryDataType
fn clone(&self) -> BinaryDataType
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 BinaryDataType
impl Debug for BinaryDataType
Source§impl From<DataType> for BinaryDataType
impl From<DataType> for BinaryDataType
Source§impl PartialEq for BinaryDataType
impl PartialEq for BinaryDataType
impl Copy for BinaryDataType
impl Eq for BinaryDataType
impl StructuralPartialEq for BinaryDataType
Auto Trait Implementations§
impl Freeze for BinaryDataType
impl RefUnwindSafe for BinaryDataType
impl Send for BinaryDataType
impl Sync for BinaryDataType
impl Unpin for BinaryDataType
impl UnwindSafe for BinaryDataType
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