pub struct ApplyOptions {
pub write: bool,
pub dry_run: bool,
pub discover: bool,
pub force_generated: bool,
pub limit: usize,
pub target: Option<String>,
pub sync_after: bool,
pub report_suggest: bool,
pub style: ApplyStyle,
pub graph_priors: bool,
pub cache_dir: Option<PathBuf>,
}Expand description
Options for apply_links.
Fields§
§write: boolWhen true, write files (requires explicit opt-in from CLI).
dry_run: boolWhen true with write, still plan but do not write (redundant safety).
discover: boolPhase 1: scan for unmarked entity mentions via Aho–Corasick.
force_generated: boolAllow rewriting files marked generated: true or .generated. paths.
limit: usizeMax edits that may be applied (or planned as auto when dry-run).
target: Option<String>Optional focus: path, node id, or title of source notes only.
sync_after: boolRun sync after successful writes (caller handles sync; flag is advisory in report).
report_suggest: boolInclude suggest-tier discover hits in the report (always; never auto-written).
style: ApplyStyleDiscover materialisation style (default ApplyStyle::Wrap).
graph_priors: boolPrefer graph-neighbor targets (1-hop SQLite adjacency) when scoring discover hits.
cache_dir: Option<PathBuf>Directory for lexicon cache (usually workspace/.brain). When None, no disk cache.
Trait Implementations§
Source§impl Clone for ApplyOptions
impl Clone for ApplyOptions
Source§fn clone(&self) -> ApplyOptions
fn clone(&self) -> ApplyOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more