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 Freeze for FieldBuilder
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