pub struct ChangeColumns {
pub pre_columns: u32,
pub post_columns: u32,
pub version: u32,
}Expand description
An even simpler migration which just changes the number of columns.
Fields§
§pre_columns: u32The amount of columns before this migration.
post_columns: u32The amount of columns after this migration.
version: u32The version after this migration.
Trait Implementations§
Source§impl Migration for ChangeColumns
impl Migration for ChangeColumns
Source§fn pre_columns(&self) -> u32
fn pre_columns(&self) -> u32
Number of columns in the database before the migration.
Source§fn alters_existing(&self) -> bool
fn alters_existing(&self) -> bool
Whether this migration alters any existing columns.
if not, then column families will simply be added and
migrate will never be called.Auto Trait Implementations§
impl Freeze for ChangeColumns
impl RefUnwindSafe for ChangeColumns
impl Send for ChangeColumns
impl Sync for ChangeColumns
impl Unpin for ChangeColumns
impl UnwindSafe for ChangeColumns
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