pub struct ApplyConfig {
pub conflict_policy: HashMap<String, String>,
}Expand description
Apply conflict resolution configuration (v0.14.3.5).
Fields§
§conflict_policy: HashMap<String, String>Per-file conflict resolution policy.
Keys are glob patterns (or exact filenames) relative to workspace root.
Values are one of: "abort", "merge", "keep-source", "force-overwrite".
Special key "default" sets the fallback for files not matched by any pattern.
Implementations§
Source§impl ApplyConfig
impl ApplyConfig
Sourcepub fn policy_for(&self, rel_path: &str) -> Option<&str>
pub fn policy_for(&self, rel_path: &str) -> Option<&str>
Resolve the conflict policy for a given file path.
Checks patterns in order (most specific first by pattern length).
Falls back to default key, then to None (caller uses CLI flag).
Trait Implementations§
Source§impl Clone for ApplyConfig
impl Clone for ApplyConfig
Source§fn clone(&self) -> ApplyConfig
fn clone(&self) -> ApplyConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 ApplyConfig
impl Debug for ApplyConfig
Source§impl Default for ApplyConfig
impl Default for ApplyConfig
Source§fn default() -> ApplyConfig
fn default() -> ApplyConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApplyConfig
impl<'de> Deserialize<'de> for ApplyConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ApplyConfig
impl RefUnwindSafe for ApplyConfig
impl Send for ApplyConfig
impl Sync for ApplyConfig
impl Unpin for ApplyConfig
impl UnsafeUnpin for ApplyConfig
impl UnwindSafe for ApplyConfig
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