pub struct ComponentConfig {
pub patch: String,
pub merge_strategy: String,
pub timestamp: bool,
pub max_entries: usize,
pub max_lines: usize,
pub pre_patch: Option<String>,
pub post_patch: Option<String>,
}Expand description
Component patch configuration (mode, timestamps, max entries, hooks).
Fields§
§patch: StringPatch mode: “replace” (default), “append”, “prepend”.
patch is the primary key; mode is a backward-compatible alias.
merge_strategy: StringMerge strategy: “append-friendly” (default) or “strict”. “append-friendly” auto-resolves conflicts where both sides only appended. “strict” preserves all conflict markers for manual resolution. Currently parsed for config validation; merge runs at document level.
timestamp: boolAuto-prefix entries with ISO timestamp (for append/prepend modes)
max_entries: usizeAuto-trim old entries in append/prepend modes (0 = unlimited)
max_lines: usizeTrim component content to the last N lines after patching (0 = unlimited). Currently used by template.rs post-patch processing.
pre_patch: Option<String>Shell command to run before patching (stdin: content, stdout: transformed)
post_patch: Option<String>Shell command to run after patching (fire-and-forget)
Trait Implementations§
Source§impl Clone for ComponentConfig
impl Clone for ComponentConfig
Source§fn clone(&self) -> ComponentConfig
fn clone(&self) -> ComponentConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more