pub struct TableSchema {
pub name: String,
pub columns: Vec<ColumnSchema>,
}Expand description
Schema for a table.
Fields§
§name: String§columns: Vec<ColumnSchema>Implementations§
Source§impl TableSchema
impl TableSchema
pub fn new(name: &str) -> Self
pub fn add_column(&mut self, column: ColumnSchema)
pub fn get_column(&self, name: &str) -> Option<&ColumnSchema>
pub fn column_exists(&self, name: &str) -> 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 moreAuto 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