pub struct MigrationPreview {
pub source_model_exists: bool,
pub target_model_exists: bool,
pub source_fields: Vec<String>,
pub target_fields: Vec<String>,
pub notes_to_migrate: usize,
pub mapping_issues: Vec<String>,
}Expand description
Preview of a migration operation.
Fields§
§source_model_exists: boolWhether the source model exists.
target_model_exists: boolWhether the target model exists.
source_fields: Vec<String>Fields in the source model.
target_fields: Vec<String>Fields in the target model.
notes_to_migrate: usizeNumber of notes that would be migrated.
mapping_issues: Vec<String>Issues with the field mapping.
Trait Implementations§
Source§impl Clone for MigrationPreview
impl Clone for MigrationPreview
Source§fn clone(&self) -> MigrationPreview
fn clone(&self) -> MigrationPreview
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MigrationPreview
impl RefUnwindSafe for MigrationPreview
impl Send for MigrationPreview
impl Sync for MigrationPreview
impl Unpin for MigrationPreview
impl UnwindSafe for MigrationPreview
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