pub struct TableSchema {
pub schema: Option<String>,
pub name: String,
pub columns: BTreeMap<String, ColumnTypeClass>,
pub primary_key: Vec<String>,
pub indexes: Vec<IndexSchema>,
}Fields§
§schema: Option<String>§name: String§columns: BTreeMap<String, ColumnTypeClass>§primary_key: Vec<String>§indexes: Vec<IndexSchema>Implementations§
Source§impl TableSchema
impl TableSchema
pub fn has_column(&self, column: &str) -> bool
pub fn column_type(&self, column: &str) -> Option<ColumnTypeClass>
pub fn is_indexed_column(&self, column: &str) -> bool
Trait Implementations§
Source§impl Clone for TableSchema
impl Clone for TableSchema
Source§impl Debug for TableSchema
impl Debug for TableSchema
impl Eq for TableSchema
Source§impl PartialEq for TableSchema
impl PartialEq for TableSchema
impl StructuralPartialEq for TableSchema
Auto Trait Implementations§
impl Forget for TableSchema
impl Freeze for TableSchemawhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, ColumnTypeClass> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, ColumnTypeClass)>>: Freeze,
PhantomData<String>: Freeze,
PhantomData<IndexSchema>: Freeze,
impl Move for TableSchema
impl RefUnwindSafe for TableSchema
impl Send for TableSchemawhere
RawVecInner: Send,
NodeRef<Owned, String, ColumnTypeClass, LeafOrInternal>: Send,
BoxRaw<(String, ColumnTypeClass)>: Send,
impl Sync for TableSchemawhere
RawVecInner: Sync,
NodeRef<Owned, String, ColumnTypeClass, LeafOrInternal>: Sync,
BoxRaw<(String, ColumnTypeClass)>: Sync,
impl Unpin for TableSchema
impl UnsafeUnpin for TableSchemawhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, ColumnTypeClass> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, ColumnTypeClass)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<IndexSchema>: UnsafeUnpin,
impl UnwindSafe for TableSchema
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