pub struct FixOptions {
pub author: Option<String>,
pub add_missing_title: bool,
pub add_missing_generated: bool,
pub add_missing_top_heading: bool,
pub migrate_legacy_timestamp: bool,
pub migrate_legacy_citations: bool,
pub reorder_keys: bool,
pub tag_computation_blocks: bool,
pub fix_log_duplicates: bool,
pub clean_whitespace: bool,
pub regenerate_indexes: bool,
}Expand description
Options controlling automated remediation and migration.
Fields§
Default author attribution string (e.g. “human:alice”).
add_missing_title: boolWhether to insert missing titles (L1).
add_missing_generated: boolWhether to insert missing generated blocks (L3).
add_missing_top_heading: boolWhether to insert missing top-level # Heading (L8).
migrate_legacy_timestamp: boolWhether to migrate legacy v0.1 timestamp (L5).
migrate_legacy_citations: boolWhether to migrate legacy v0.1 Citations (L6).
reorder_keys: boolWhether to reorder frontmatter keys canonically (L18).
tag_computation_blocks: boolWhether to tag unlabeled computation blocks (L26).
fix_log_duplicates: boolWhether to consolidate duplicate date headings in log.md (L27).
clean_whitespace: boolWhether to strip trailing whitespace and excess blank lines (L28).
regenerate_indexes: boolWhether to regenerate index files (L16).
Implementations§
Source§impl FixOptions
impl FixOptions
Sourcepub const fn validation_only(author: Option<String>) -> Self
pub const fn validation_only(author: Option<String>) -> Self
Creates options that only fix strict spec conformance and migration issues (for okf validate --fix).
Trait Implementations§
Source§impl Clone for FixOptions
impl Clone for FixOptions
Source§fn clone(&self) -> FixOptions
fn clone(&self) -> FixOptions
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 FixOptions
impl Debug for FixOptions
Source§impl Default for FixOptions
impl Default for FixOptions
impl Eq for FixOptions
Source§impl PartialEq for FixOptions
impl PartialEq for FixOptions
impl StructuralPartialEq for FixOptions
Auto Trait Implementations§
impl Freeze for FixOptions
impl RefUnwindSafe for FixOptions
impl Send for FixOptions
impl Sync for FixOptions
impl Unpin for FixOptions
impl UnsafeUnpin for FixOptions
impl UnwindSafe for FixOptions
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