pub struct ColumnLayout {
pub name: String,
pub data_type: u8,
pub nullable: bool,
pub default: Option<Vec<u8>>,
pub vector_dim: Option<u32>,
pub compress: bool,
pub enum_variants: Vec<String>,
pub decimal_precision: u8,
pub element_type: Option<u8>,
pub metadata: Vec<(String, String)>,
}Expand description
Plain, engine-agnostic view of a persisted column definition.
Fields§
§name: StringColumn name.
data_type: u8DataType discriminant byte.
nullable: boolWhether NULL is allowed.
default: Option<Vec<u8>>Serialized default value, if any.
vector_dim: Option<u32>Vector dimension, if any.
compress: boolPer-column compression flag.
enum_variants: Vec<String>Enum variant labels (for enum-typed columns).
decimal_precision: u8Decimal precision.
element_type: Option<u8>Array element DataType discriminant byte, if any.
metadata: Vec<(String, String)>Column metadata (key, value) pairs in persistence order.
Trait Implementations§
Source§impl Clone for ColumnLayout
impl Clone for ColumnLayout
Source§fn clone(&self) -> ColumnLayout
fn clone(&self) -> ColumnLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ColumnLayout
impl Debug for ColumnLayout
Source§impl PartialEq for ColumnLayout
impl PartialEq for ColumnLayout
Source§fn eq(&self, other: &ColumnLayout) -> bool
fn eq(&self, other: &ColumnLayout) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ColumnLayout
Auto Trait Implementations§
impl Freeze for ColumnLayout
impl RefUnwindSafe for ColumnLayout
impl Send for ColumnLayout
impl Sync for ColumnLayout
impl Unpin for ColumnLayout
impl UnsafeUnpin for ColumnLayout
impl UnwindSafe for ColumnLayout
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