pub struct MigrationConfig {
pub source_model: String,
pub target_model: String,
pub field_mapping: HashMap<String, String>,
pub target_deck: Option<String>,
pub delete_source: bool,
pub add_tags: Vec<String>,
}Expand description
Configuration for a note type migration.
Fields§
§source_model: StringSource model name.
target_model: StringTarget model name.
field_mapping: HashMap<String, String>Field mapping: source field -> target field.
target_deck: Option<String>Target deck (if None, keeps original deck).
delete_source: boolWhether to delete source notes after migration.
Tags to add to migrated notes.
Trait Implementations§
Source§impl Clone for MigrationConfig
impl Clone for MigrationConfig
Source§fn clone(&self) -> MigrationConfig
fn clone(&self) -> MigrationConfig
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 MigrationConfig
impl RefUnwindSafe for MigrationConfig
impl Send for MigrationConfig
impl Sync for MigrationConfig
impl Unpin for MigrationConfig
impl UnwindSafe for MigrationConfig
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