pub struct PackageDependency {
pub ecosystem: PackageEcosystem,
pub name: String,
pub version_or_range: Option<String>,
pub scope: DependencyScope,
pub optional: bool,
pub condition: Option<String>,
pub source_path: String,
pub evidence: PackageEvidenceLine,
pub confidence: f32,
}Expand description
A statically declared dependency.
Fields§
§ecosystem: PackageEcosystemEcosystem in which the dependency name is interpreted.
name: StringPackage name, module path, or group-and-artifact coordinate.
version_or_range: Option<String>Exact version or version range as written, when statically available.
scope: DependencyScopeSemantic role of the dependency.
optional: boolWhether the declaration explicitly makes the dependency optional.
condition: Option<String>Feature, target, marker, profile, framework, or configuration condition.
source_path: StringRepository-relative manifest path.
evidence: PackageEvidenceLineExact declaration line.
confidence: f32Normalized confidence in the inclusive range from zero to one.
Trait Implementations§
Source§impl Clone for PackageDependency
impl Clone for PackageDependency
Source§fn clone(&self) -> PackageDependency
fn clone(&self) -> PackageDependency
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 PackageDependency
impl Debug for PackageDependency
Source§impl<'de> Deserialize<'de> for PackageDependency
impl<'de> Deserialize<'de> for PackageDependency
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 PartialEq for PackageDependency
impl PartialEq for PackageDependency
Source§impl Serialize for PackageDependency
impl Serialize for PackageDependency
impl StructuralPartialEq for PackageDependency
Auto Trait Implementations§
impl Freeze for PackageDependency
impl RefUnwindSafe for PackageDependency
impl Send for PackageDependency
impl Sync for PackageDependency
impl Unpin for PackageDependency
impl UnsafeUnpin for PackageDependency
impl UnwindSafe for PackageDependency
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