pub struct OutdatedDep {
pub crate_name: String,
pub current: String,
pub latest: String,
pub major_behind: u32,
pub kind: Option<DepKind>,
}Expand description
An outdated-dependency finding.
Fields§
§crate_name: StringCrate name.
current: StringCurrent version pinned in Cargo.toml.
latest: StringLatest available version on the registry.
major_behind: u32How many major versions behind the current pin is.
kind: Option<DepKind>Where the dependency is declared, when the underlying tool exposed it.
Implementations§
Source§impl OutdatedDep
impl OutdatedDep
Sourcepub fn severity(&self, escalate_at: Option<u32>) -> Severity
pub fn severity(&self, escalate_at: Option<u32>) -> Severity
Severity assigned to this finding.
Info for 0–1 major behind; Warning for 2+ majors behind.
When escalate_at is Some(n) and the crate is at least n
majors behind, the severity is bumped to Error so the produced
CheckResult becomes a failing verdict.
Trait Implementations§
Source§impl Clone for OutdatedDep
impl Clone for OutdatedDep
Source§fn clone(&self) -> OutdatedDep
fn clone(&self) -> OutdatedDep
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 OutdatedDep
impl Debug for OutdatedDep
Source§impl<'de> Deserialize<'de> for OutdatedDep
impl<'de> Deserialize<'de> for OutdatedDep
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
Auto Trait Implementations§
impl Freeze for OutdatedDep
impl RefUnwindSafe for OutdatedDep
impl Send for OutdatedDep
impl Sync for OutdatedDep
impl Unpin for OutdatedDep
impl UnsafeUnpin for OutdatedDep
impl UnwindSafe for OutdatedDep
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