pub struct PackageStatus {
pub wanted: String,
pub latest: String,
pub location: Option<String>,
pub dependent: Option<String>,
pub package_type: String,
pub homepage: Option<String>,
}
Expand description
Inner, per-package structure when parsing npm-outdated output
Meaning of the fields is from npm-outdated
Fields§
§wanted: String
wanted is the maximum version of the package that satisfies the semver range specified in package.json. If there’s no available semver range (i.e. you’re running npm outdated –global, or the package isn’t included in package.json), then wanted shows the currently-installed version.
latest: String
latest is the version of the package tagged as latest in the registry. Running npm publish with no special configuration will publish the package with a dist-tag of latest. This may or may not be the maximum version of the package, or the most-recently published version of the package, depending on how the package’s developer manages the latest dist-tag.
location: Option<String>
where in the physical tree the package is located.
dependent: Option<String>
shows which package depends on the displayed dependency
optional since it is new between npm version 6 and 8
package_type: String
tells you whether this package is a dependency or a dev/peer/optional dependency. Packages not included in package.json are always marked dependencies.
homepage: Option<String>
the homepage value contained in the package’s packument
optional since it is not included in all npm versions
Trait Implementations§
Source§impl Debug for PackageStatus
impl Debug for PackageStatus
Source§impl<'de> Deserialize<'de> for PackageStatus
impl<'de> Deserialize<'de> for PackageStatus
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 PackageStatus
impl RefUnwindSafe for PackageStatus
impl Send for PackageStatus
impl Sync for PackageStatus
impl Unpin for PackageStatus
impl UnwindSafe for PackageStatus
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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