pub struct DependencyProvenance {
pub requested_name: String,
pub source: Option<DependencySource>,
pub provider: Option<String>,
}Expand description
What: Identify the source and requested/provider identity behind a graph node.
Inputs:
- The requested dependency name, optional verified source, and optional selected provider.
Output:
- Lets callers distinguish direct packages, virtual providers, and unresolved names.
Details:
sourceisNoneonly when metadata is absent or failed. The resolver never infers AUR provenance merely because an unknown name was not found elsewhere.
Fields§
§requested_name: StringOriginal dependency name requested by the parent package.
source: Option<DependencySource>Verified source reported by the metadata provider, if metadata was available.
provider: Option<String>Actual package selected to satisfy a virtual request, if different from the request.
Trait Implementations§
Source§impl Clone for DependencyProvenance
impl Clone for DependencyProvenance
Source§fn clone(&self) -> DependencyProvenance
fn clone(&self) -> DependencyProvenance
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 DependencyProvenance
impl Debug for DependencyProvenance
Source§impl Default for DependencyProvenance
impl Default for DependencyProvenance
Source§fn default() -> DependencyProvenance
fn default() -> DependencyProvenance
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DependencyProvenance
impl<'de> Deserialize<'de> for DependencyProvenance
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
impl Eq for DependencyProvenance
Source§impl PartialEq for DependencyProvenance
impl PartialEq for DependencyProvenance
Source§impl Serialize for DependencyProvenance
impl Serialize for DependencyProvenance
impl StructuralPartialEq for DependencyProvenance
Auto Trait Implementations§
impl Freeze for DependencyProvenance
impl RefUnwindSafe for DependencyProvenance
impl Send for DependencyProvenance
impl Sync for DependencyProvenance
impl Unpin for DependencyProvenance
impl UnsafeUnpin for DependencyProvenance
impl UnwindSafe for DependencyProvenance
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.