pub enum FieldChange {
AddField {
name: String,
default: String,
},
RemoveField {
name: String,
},
RenameField {
from: String,
to: String,
},
ChangeType {
name: String,
description: String,
},
}Expand description
A single field change within a migration step.
Variants§
AddField
Add a new field with a default value.
RemoveField
Remove a field.
RenameField
Rename a field.
ChangeType
Change the type of a field (with a conversion description).
Trait Implementations§
Source§impl Clone for FieldChange
impl Clone for FieldChange
Source§fn clone(&self) -> FieldChange
fn clone(&self) -> FieldChange
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FieldChange
impl Debug for FieldChange
Source§impl PartialEq for FieldChange
impl PartialEq for FieldChange
impl StructuralPartialEq for FieldChange
Auto Trait Implementations§
impl Freeze for FieldChange
impl RefUnwindSafe for FieldChange
impl Send for FieldChange
impl Sync for FieldChange
impl Unpin for FieldChange
impl UnsafeUnpin for FieldChange
impl UnwindSafe for FieldChange
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