pub struct TableSchema {
pub name: String,
pub type_name: String,
pub visibility: TableVisibility,
pub fields: Vec<FieldDef>,
pub primary_key: FieldDef,
pub primary_key_auto_inc: bool,
pub indexes: Vec<IndexSchema>,
pub persistence: PersistenceKind,
}Fields§
§name: String§type_name: String§visibility: TableVisibility§fields: Vec<FieldDef>§primary_key: FieldDef§primary_key_auto_inc: bool§indexes: Vec<IndexSchema>§persistence: PersistenceKindImplementations§
Source§impl TableSchema
impl TableSchema
pub fn validate_row( &self, row: &Row, type_definitions: &HashMap<String, IntersticeTypeDef>, ) -> bool
Trait Implementations§
Source§impl Clone for TableSchema
impl Clone for TableSchema
Source§fn clone(&self) -> TableSchema
fn clone(&self) -> TableSchema
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 TableSchema
impl Debug for TableSchema
Source§impl<'de> Deserialize<'de> for TableSchema
impl<'de> Deserialize<'de> for TableSchema
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
Auto Trait Implementations§
impl Freeze for TableSchema
impl RefUnwindSafe for TableSchema
impl Send for TableSchema
impl Sync for TableSchema
impl Unpin for TableSchema
impl UnsafeUnpin for TableSchema
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