Struct depdive::PackageMetrics [−][src]
pub struct PackageMetrics { pub name: String, pub is_direct: bool, pub kind: DependencyKind, pub cratesio_metrics: Option<CratesioReport>, pub github_metrics: Option<GitHubReport>, }
Expand description
Usage and Activity metrics for a crate
Fields
name: String
is_direct: bool
kind: DependencyKind
cratesio_metrics: Option<CratesioReport>
github_metrics: Option<GitHubReport>
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for PackageMetrics
impl Send for PackageMetrics
impl Sync for PackageMetrics
impl Unpin for PackageMetrics
impl UnwindSafe for PackageMetrics
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
impl<T> SafeBorrow<T> for T where
T: ?Sized,
impl<T> SafeBorrow<T> for T where
T: ?Sized,
pub fn borrow_replacement(ptr: &T) -> &T
pub fn borrow_replacement(ptr: &T) -> &T
Given ptr
, which was obtained from a prior call to Self::borrow()
,
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self
. Read more