pub enum PatchProvenance {
Manifest,
Config(ConfigValueSource),
}Expand description
Provenance label for a patch entry. Mirrors the precedence
ladder Cabin walks for patch resolution and is surfaced
verbatim in cabin metadata so users can audit which file
supplied each active patch.
Variants§
Manifest
The workspace-root cabin.toml’s [patch] table.
Config(ConfigValueSource)
A .cabin/config.toml’s [patch] table. The inner
ConfigValueSource identifies which config file
supplied the value.
Implementations§
Trait Implementations§
Source§impl Clone for PatchProvenance
impl Clone for PatchProvenance
Source§fn clone(&self) -> PatchProvenance
fn clone(&self) -> PatchProvenance
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PatchProvenance
impl Debug for PatchProvenance
Source§impl<'de> Deserialize<'de> for PatchProvenance
impl<'de> Deserialize<'de> for PatchProvenance
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
Source§impl Display for PatchProvenance
impl Display for PatchProvenance
Source§impl Hash for PatchProvenance
impl Hash for PatchProvenance
Source§impl PartialEq for PatchProvenance
impl PartialEq for PatchProvenance
Source§fn eq(&self, other: &PatchProvenance) -> bool
fn eq(&self, other: &PatchProvenance) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PatchProvenance
impl Serialize for PatchProvenance
impl Copy for PatchProvenance
impl Eq for PatchProvenance
impl StructuralPartialEq for PatchProvenance
Auto Trait Implementations§
impl Freeze for PatchProvenance
impl RefUnwindSafe for PatchProvenance
impl Send for PatchProvenance
impl Sync for PatchProvenance
impl Unpin for PatchProvenance
impl UnsafeUnpin for PatchProvenance
impl UnwindSafe for PatchProvenance
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.