pub struct DefaultColumnConstraintGenerator { /* private fields */ }Implementations§
Source§impl DefaultColumnConstraintGenerator
impl DefaultColumnConstraintGenerator
pub fn new(context: GeneratorContext) -> Self
pub fn context(&self) -> &GeneratorContext
pub fn generate_constraint(&self, table: &Table, column: &Column) -> String
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DefaultColumnConstraintGenerator
impl !Send for DefaultColumnConstraintGenerator
impl !Sync for DefaultColumnConstraintGenerator
impl !UnwindSafe for DefaultColumnConstraintGenerator
impl Freeze for DefaultColumnConstraintGenerator
impl Unpin for DefaultColumnConstraintGenerator
impl UnsafeUnpin for DefaultColumnConstraintGenerator
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