pub struct DependencyMetadata {
pub requested_name: String,
pub package_name: String,
pub source: DependencySource,
pub srcinfo: String,
}Expand description
What: Carry raw .SRCINFO metadata returned by an injected graph metadata provider.
Inputs:
- Requested name, selected actual package, verified source, and raw
.SRCINFOtext.
Output:
- Supplies enough information to resolve direct and virtual dependencies without a crate-level AUR or HTTP dependency.
Details:
package_namemust name the selected split-package output. If it differs fromrequested_name, the resolver verifies that the selected output provides the requested name.
Fields§
§requested_name: StringPackage or virtual name queried from the provider.
package_name: StringActual selected package name, including a split-package output when applicable.
source: DependencySourceVerified source supplied by the metadata provider.
srcinfo: StringRaw .SRCINFO text for the containing package base.
Implementations§
Source§impl DependencyMetadata
impl DependencyMetadata
Sourcepub fn new(
requested_name: impl Into<String>,
package_name: impl Into<String>,
source: DependencySource,
srcinfo: impl Into<String>,
) -> Self
pub fn new( requested_name: impl Into<String>, package_name: impl Into<String>, source: DependencySource, srcinfo: impl Into<String>, ) -> Self
What: Construct injected raw metadata for one requested package or provider.
Inputs:
requested_name: Queried package or virtual name.package_name: Selected actual package output.source: Verified source of the selected package.srcinfo: Raw.SRCINFOpackage-base metadata.
Output:
- Returns a metadata record suitable for
DependencyMetadataProvider.
Details:
- This constructor performs no I/O or parsing so deterministic fixtures can use it directly.
Trait Implementations§
Source§impl Clone for DependencyMetadata
impl Clone for DependencyMetadata
Source§fn clone(&self) -> DependencyMetadata
fn clone(&self) -> DependencyMetadata
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 DependencyMetadata
impl Debug for DependencyMetadata
impl Eq for DependencyMetadata
Source§impl PartialEq for DependencyMetadata
impl PartialEq for DependencyMetadata
impl StructuralPartialEq for DependencyMetadata
Auto Trait Implementations§
impl Freeze for DependencyMetadata
impl RefUnwindSafe for DependencyMetadata
impl Send for DependencyMetadata
impl Sync for DependencyMetadata
impl Unpin for DependencyMetadata
impl UnsafeUnpin for DependencyMetadata
impl UnwindSafe for DependencyMetadata
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.