pub struct ColumnBuilder { /* private fields */ }Implementations§
Source§impl ColumnBuilder
impl ColumnBuilder
pub fn nullable(self) -> Self
pub fn not_null(self) -> Self
pub fn primary_key(self) -> Self
pub fn default(self, expr: impl Into<String>) -> Self
pub fn references( self, table: impl Into<String>, column: impl Into<String>, ) -> Self
pub fn references_named( self, name: impl Into<String>, table: impl Into<String>, column: impl Into<String>, ) -> Self
Sourcepub fn on_delete(self, action: impl Into<String>) -> Self
pub fn on_delete(self, action: impl Into<String>) -> Self
Set the inline foreign-key ON DELETE action.
Sourcepub fn on_update(self, action: impl Into<String>) -> Self
pub fn on_update(self, action: impl Into<String>) -> Self
Set the inline foreign-key ON UPDATE action.
pub fn check(self, expr: impl Into<String>) -> Self
Auto Trait Implementations§
impl Freeze for ColumnBuilder
impl RefUnwindSafe for ColumnBuilder
impl Send for ColumnBuilder
impl Sync for ColumnBuilder
impl Unpin for ColumnBuilder
impl UnsafeUnpin for ColumnBuilder
impl UnwindSafe for ColumnBuilder
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