pub struct TableDef {
pub name: &'static str,
pub owner: &'static str,
pub columns: Vec<ColumnDef>,
/* private fields */
}Fields§
§name: &'static str§owner: &'static str§columns: Vec<ColumnDef>Implementations§
Source§impl TableDef
impl TableDef
Sourcepub fn id_storage(&self) -> IdStorage
pub fn id_storage(&self) -> IdStorage
How this table’s ColumnType::Id columns are stored; the same for every table
in a schema.
pub fn position(&self, column: &str) -> Option<usize>
pub fn column(&self, column: &str) -> Option<&ColumnDef>
pub fn primary_key(&self) -> Option<&ColumnDef>
Trait Implementations§
impl Eq for TableDef
impl StructuralPartialEq for TableDef
Auto Trait Implementations§
impl Forget for TableDef
impl Freeze for TableDef
impl Move for TableDef
impl RefUnwindSafe for TableDef
impl Send for TableDef
impl Sync for TableDef
impl Unpin for TableDef
impl UnsafeUnpin for TableDef
impl UnwindSafe for TableDef
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