pub struct FixOptions {Show 13 fields
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 normalize_date_formats: bool,
pub reorder_keys: bool,
pub tag_computation_blocks: bool,
pub fix_log_duplicates: bool,
pub clean_whitespace: bool,
pub regenerate_indexes: bool,
pub quote_okf_version: 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).
normalize_date_formats: boolWhether to normalize date/datetime strings lacking explicit UTC offset.
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 (L8).
regenerate_indexes: boolWhether to regenerate index files (L16).
quote_okf_version: boolWhether to quote unquoted okf_version in root index.md (L13).
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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more