pub struct DependencyCheck {
pub dependency: Dependency,
pub installed: Option<Version>,
pub in_range: Option<Version>,
pub latest: Version,
pub update_to: Option<VersionSpec>,
}Expand description
Result of checking a dependency
Fields§
§dependency: DependencyThe original dependency
installed: Option<Version>Currently installed version (from lock file)
in_range: Option<Version>Latest version within the constraint (same major)
latest: VersionAbsolute latest version
update_to: Option<VersionSpec>What the spec will be updated to (None means no update)
Implementations§
Source§impl DependencyCheck
impl DependencyCheck
Sourcepub fn has_update(&self) -> bool
pub fn has_update(&self) -> bool
Check if this dependency has any update available
Sourcepub fn update_severity(&self) -> Option<UpdateSeverity>
pub fn update_severity(&self) -> Option<UpdateSeverity>
Get the update severity (major, minor, patch)
Trait Implementations§
Source§impl Clone for DependencyCheck
impl Clone for DependencyCheck
Source§fn clone(&self) -> DependencyCheck
fn clone(&self) -> DependencyCheck
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DependencyCheck
impl RefUnwindSafe for DependencyCheck
impl Send for DependencyCheck
impl Sync for DependencyCheck
impl Unpin for DependencyCheck
impl UnwindSafe for DependencyCheck
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