pub struct MigrateOptions {
pub from: RuleFormat,
pub to: RuleFormat,
pub force: bool,
pub filename_hint: Option<String>,
}Expand description
Options for migrate_string and migrate_paths.
Fields§
§from: RuleFormatSource format, or RuleFormat::Auto to detect from frontmatter.
to: RuleFormatTarget format to emit.
force: boolWhen writing to disk, overwrite existing output files.
filename_hint: Option<String>Filename stem used when inferring name for empty frontmatter.
Trait Implementations§
Source§impl Clone for MigrateOptions
impl Clone for MigrateOptions
Source§fn clone(&self) -> MigrateOptions
fn clone(&self) -> MigrateOptions
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 MigrateOptions
impl Debug for MigrateOptions
Auto Trait Implementations§
impl Freeze for MigrateOptions
impl RefUnwindSafe for MigrateOptions
impl Send for MigrateOptions
impl Sync for MigrateOptions
impl Unpin for MigrateOptions
impl UnsafeUnpin for MigrateOptions
impl UnwindSafe for MigrateOptions
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