pub struct TbpSchema {
pub name: String,
pub columns: Vec<TbpColumn>,
pub schema_id: u64,
}Expand description
TBP schema
Fields§
§name: StringTable name
columns: Vec<TbpColumn>Columns
schema_id: u64Schema ID (hash for validation)
Implementations§
Source§impl TbpSchema
impl TbpSchema
pub fn new(name: impl Into<String>, columns: Vec<TbpColumn>) -> Self
Sourcepub fn has_variable_columns(&self) -> bool
pub fn has_variable_columns(&self) -> bool
Check if schema has any variable-length columns
Sourcepub fn has_nullable_columns(&self) -> bool
pub fn has_nullable_columns(&self) -> bool
Check if schema has any nullable columns
Sourcepub fn fixed_row_size(&self) -> Option<usize>
pub fn fixed_row_size(&self) -> Option<usize>
Get the fixed row size (if all columns are fixed-size)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TbpSchema
impl RefUnwindSafe for TbpSchema
impl Send for TbpSchema
impl Sync for TbpSchema
impl Unpin for TbpSchema
impl UnwindSafe for TbpSchema
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