pub struct TableRef {
pub name: &'static str,
pub column_names: &'static [&'static str],
pub schema: Option<&'static str>,
pub qualified_name: &'static str,
pub columns: &'static [ColumnRef],
pub primary_key: Option<PrimaryKeyRef>,
pub foreign_keys: &'static [ForeignKeyRef],
pub constraints: &'static [ConstraintRef],
pub dependency_names: &'static [&'static str],
pub dialect: TableDialect,
}Expand description
A table’s name, columns, and schema metadata, generated by the table macros.
SQL rendering only reads schema, name and column_names (through
TableSqlRef). Migrations read the rest.
Fields§
§name: &'static str§column_names: &'static [&'static str]§schema: Option<&'static str>§qualified_name: &'static str§columns: &'static [ColumnRef]§primary_key: Option<PrimaryKeyRef>§foreign_keys: &'static [ForeignKeyRef]§constraints: &'static [ConstraintRef]§dependency_names: &'static [&'static str]§dialect: TableDialectImplementations§
Trait Implementations§
impl Copy for TableRef
impl Eq for TableRef
Source§impl From<&TableRef> for TableSqlRef
impl From<&TableRef> for TableSqlRef
Source§impl From<TableRef> for TableSqlRef
impl From<TableRef> for TableSqlRef
impl StructuralPartialEq for TableRef
Auto Trait Implementations§
impl Freeze for TableRef
impl RefUnwindSafe for TableRef
impl Send for TableRef
impl Sync for TableRef
impl Unpin for TableRef
impl UnsafeUnpin for TableRef
impl UnwindSafe for TableRef
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