pub enum MergeError {
UnknownPath {
path: SecretPath,
role: PathRole,
},
OverrideOnProjectLocal {
path: SecretPath,
},
}Expand description
Fatal merge errors.
Variants§
UnknownPath
The path appears in required or optional but has no entry
in either the global index or the manifest’s [secret."..."]
blocks. ADR-020 §4 calls this E_SECRET_UNKNOWN_PATH.
OverrideOnProjectLocal
An [overrides."<path>"] block targets a path that is also
declared as [secret."<path>"] (project-local). The two are
in conflict: project-local entries already carry the full
metadata, and an override on top of them silently mixes
concerns. Spec rule 1 wins (secret block) but the merge
rejects this configuration outright so drift cannot grow
silently.
Fields
§
path: SecretPathThe conflicting path.
Trait Implementations§
Source§impl Debug for MergeError
impl Debug for MergeError
Source§impl Display for MergeError
impl Display for MergeError
impl Eq for MergeError
Source§impl Error for MergeError
impl Error for MergeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for MergeError
impl PartialEq for MergeError
Source§fn eq(&self, other: &MergeError) -> bool
fn eq(&self, other: &MergeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MergeError
Auto Trait Implementations§
impl Freeze for MergeError
impl RefUnwindSafe for MergeError
impl Send for MergeError
impl Sync for MergeError
impl Unpin for MergeError
impl UnsafeUnpin for MergeError
impl UnwindSafe for MergeError
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.