pub struct TableSchema {
pub table_name: String,
pub columns: Vec<ColumnDef>,
pub constraints: Vec<Constraint>,
pub ordering: Vec<OrderBy>,
pub managed: bool,
pub comment: Option<String>,
}Expand description
Represents the schema of a single table, as declared by a Model.
Fields§
§table_name: String§columns: Vec<ColumnDef>§constraints: Vec<Constraint>§ordering: Vec<OrderBy>§managed: bool§comment: Option<String>Trait Implementations§
Source§impl Clone for TableSchema
impl Clone for TableSchema
Source§impl Debug for TableSchema
impl Debug for TableSchema
Auto Trait Implementations§
impl Forget for TableSchema
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