pub struct TableStatement {
pub kind: TableKind,
pub name: Identifier,
pub fields: IndexMap<String, FieldStatement>,
pub constraints: BTreeMap<String, ConstraintStatement>,
}Fields§
§kind: TableKind§name: Identifier§fields: IndexMap<String, FieldStatement>§constraints: BTreeMap<String, ConstraintStatement>Implementations§
Source§impl TableStatement
impl TableStatement
pub fn add_field(&mut self, field: FieldStatement) -> Result<(), FieldStatement>
pub fn add_constraint(&mut self, constraint: ConstraintStatement)
Trait Implementations§
Source§impl Clone for TableStatement
impl Clone for TableStatement
Source§fn clone(&self) -> TableStatement
fn clone(&self) -> TableStatement
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 TableStatement
impl Debug for TableStatement
Source§impl Default for TableStatement
impl Default for TableStatement
Source§fn default() -> TableStatement
fn default() -> TableStatement
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TableStatement
impl RefUnwindSafe for TableStatement
impl Send for TableStatement
impl Sync for TableStatement
impl Unpin for TableStatement
impl UnwindSafe for TableStatement
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