Struct npm_parser::outdated::PackageStatus
source · [−]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
sourceimpl Debug for PackageStatus
impl Debug for PackageStatus
sourceimpl<'de> Deserialize<'de> for PackageStatus
impl<'de> Deserialize<'de> for PackageStatus
sourcefn 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
sourceimpl Serialize for PackageStatus
impl Serialize for PackageStatus
Auto Trait Implementations
impl RefUnwindSafe for PackageStatus
impl Send for PackageStatus
impl Sync for PackageStatus
impl Unpin for PackageStatus
impl UnwindSafe for PackageStatus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more