Struct good_ormning::sqlite::schema::field::FieldBuilder
source · pub struct FieldBuilder { /* private fields */ }Implementations§
source§impl FieldBuilder
impl FieldBuilder
sourcepub fn opt(self) -> FieldBuilder
pub fn opt(self) -> FieldBuilder
Make the field optional.
sourcepub fn migrate_fill(self, expr: Expr) -> FieldBuilder
pub fn migrate_fill(self, expr: Expr) -> FieldBuilder
Specify an expression to use to populate the new column in existing rows. This is must be specified (only) for non-opt fields in a new version of an existing table.
sourcepub fn custom(self, type_: impl ToString) -> FieldBuilder
pub fn custom(self, type_: impl ToString) -> FieldBuilder
Use a custom Rust type for this field. This must be the full path to the type,
like crate::abcdef::MyType.
pub fn build(self) -> FieldType
Auto Trait Implementations§
impl !RefUnwindSafe for FieldBuilder
impl !Send for FieldBuilder
impl !Sync for FieldBuilder
impl Unpin for FieldBuilder
impl !UnwindSafe for FieldBuilder
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