pub struct DependentPackage {
pub purl: String,
pub requirement: String,
pub scope: String,
pub is_runtime: bool,
pub is_optional: bool,
pub is_resolved: bool,
pub reachable: Reachability,
pub relation: HashSet<Relation>,
pub parents: HashSet<String>,
}Fields§
§purl: StringDependent package URL A compact purl package URL. Typically when there is an unresolved requirement, there is no version. If the dependency is resolved, the version should be added to the purl
requirement: Stringdependent package version requirement A string defining version(s)requirements. Package-type specific.
scope: Stringdependency scope The scope of this dependency, such as runtime, install, etc. This is package-type specific and is the original scope string.
is_runtime: boolis runtime flag True if this dependency is a runtime dependency.
is_optional: boolis optional flag True if this dependency is an optional dependency’
is_resolved: boolis resolved flag True if this dependency version requirement has been resolved and this dependency url points to an exact version.
reachable: Reachabilityis reachable flag
relation: HashSet<Relation>The relation of this dependency to the top package.
parents: HashSet<String>parents, in purl format
Trait Implementations§
Source§impl Clone for DependentPackage
impl Clone for DependentPackage
Source§fn clone(&self) -> DependentPackage
fn clone(&self) -> DependentPackage
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 DependentPackage
impl Debug for DependentPackage
Source§impl Default for DependentPackage
impl Default for DependentPackage
Source§impl<'de> Deserialize<'de> for DependentPackage
impl<'de> Deserialize<'de> for DependentPackage
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>,
Auto Trait Implementations§
impl Freeze for DependentPackage
impl RefUnwindSafe for DependentPackage
impl Send for DependentPackage
impl Sync for DependentPackage
impl Unpin for DependentPackage
impl UnsafeUnpin for DependentPackage
impl UnwindSafe for DependentPackage
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more