pub struct NpmVersion {Show 18 fields
pub dist: NpmDist,
pub dependencies: Option<HashMap<String, String>>,
pub dev_dependencies: Option<HashMap<String, String>>,
pub peer_dependencies: Option<HashMap<String, String>>,
pub optional_dependencies: Option<HashMap<String, String>>,
pub bundled_dependencies: Option<Vec<String>>,
pub engines: Option<HashMap<String, String>>,
pub scripts: Option<HashMap<String, String>>,
pub name: String,
pub version: String,
pub readme_filename: Option<String>,
pub maintainers: Vec<NpmPerson>,
pub author: Option<NpmPerson>,
pub repository: Option<NpmRepository>,
pub bugs: Option<NpmBugs>,
pub homepage: Option<String>,
pub keywords: Option<Vec<String>>,
pub license: Option<String>,
}Expand description
Information about a specific NPM package version
Fields§
§dist: NpmDistDistribution information for the package
dependencies: Option<HashMap<String, String>>Package dependencies
dev_dependencies: Option<HashMap<String, String>>Development dependencies
peer_dependencies: Option<HashMap<String, String>>Peer dependencies
optional_dependencies: Option<HashMap<String, String>>Optional dependencies
bundled_dependencies: Option<Vec<String>>Bundled dependencies
engines: Option<HashMap<String, String>>Engine requirements
scripts: Option<HashMap<String, String>>NPM scripts
name: StringPackage name
version: StringPackage version
readme_filename: Option<String>README file name
maintainers: Vec<NpmPerson>Package maintainers
Package author
repository: Option<NpmRepository>Source repository
bugs: Option<NpmBugs>Bug tracker information
homepage: Option<String>Package homepage
keywords: Option<Vec<String>>Package keywords
license: Option<String>License identifier
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NpmVersion
impl<'de> Deserialize<'de> for NpmVersion
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 NpmVersion
impl RefUnwindSafe for NpmVersion
impl Send for NpmVersion
impl Sync for NpmVersion
impl Unpin for NpmVersion
impl UnsafeUnpin for NpmVersion
impl UnwindSafe for NpmVersion
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
Converts
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> ⓘ
Converts
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.