pub enum SourceProvenance {
WorkspaceMember,
LocalPath,
Patched {
path: PathBuf,
provenance: String,
},
Registry {
checksum: Option<String>,
},
}Expand description
Provenance label for one node in a TreeNode or one
step in an Explanation::Package chain.
The variants reflect the load-bearing distinctions Cabin
already makes elsewhere: a workspace member, a local path
dependency, a patched local working copy, a registry
package the artifact pipeline materialized, or a vendored
package supplied by cabin vendor.
Variants§
WorkspaceMember
A workspace member declared by the root manifest’s
[workspace.members] table.
LocalPath
A local path = "..." dependency that lives outside the
workspace.
Patched
A registry package that an active [patch] entry pinned
to a local working copy. The path is the patched
directory’s manifest_dir.
Fields
Registry
A registry package whose source bytes were materialized by the artifact pipeline. Carries the recorded checksum when the lockfile pinned one.
Trait Implementations§
Source§impl Clone for SourceProvenance
impl Clone for SourceProvenance
Source§fn clone(&self) -> SourceProvenance
fn clone(&self) -> SourceProvenance
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SourceProvenance
impl Debug for SourceProvenance
Source§impl PartialEq for SourceProvenance
impl PartialEq for SourceProvenance
Source§fn eq(&self, other: &SourceProvenance) -> bool
fn eq(&self, other: &SourceProvenance) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for SourceProvenance
impl Serialize for SourceProvenance
impl Eq for SourceProvenance
impl StructuralPartialEq for SourceProvenance
Auto Trait Implementations§
impl Freeze for SourceProvenance
impl RefUnwindSafe for SourceProvenance
impl Send for SourceProvenance
impl Sync for SourceProvenance
impl Unpin for SourceProvenance
impl UnsafeUnpin for SourceProvenance
impl UnwindSafe for SourceProvenance
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
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
key and return true if they are equal.