Expand description
Some metadata about a table that was just created
Fields
name: String
has_id: bool
encoding: String
Implementations
sourceimpl TableMeta
impl TableMeta
sourcepub fn without_id(&mut self) -> &mut TableMeta
pub fn without_id(&mut self) -> &mut TableMeta
Disable the auto-key feature
A table is by default created with an auto-incrementing primary key called “id”. You can disable this feature here. If you do and still want a priamry key, you will have to specify it yourself in the table init closure
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TableMeta
impl Send for TableMeta
impl Sync for TableMeta
impl Unpin for TableMeta
impl UnwindSafe for TableMeta
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IntoSql for T
impl<T> IntoSql for T
sourcefn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
Convert
self
to an expression for Diesel’s query builder. Read moresourcefn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more