pub struct NpmCompPackage {
pub name: String,
pub version: Version,
pub description: String,
pub dist: NpmCompDist,
pub dependencies: HashMap<String, VersionReq>,
}
Expand description
The package result
See https://jsr.io/docs/api#package-version-metadata
Fields§
§name: String
JSR-to-npm equivalent package name
Note: this is different than normal [Meta::name].
If your [MetaBuilder] contains like this
MetaBuilder::new()
.set_scope("dunno")
.set_name("object")
It would be added like this, right?
{
scope: "dunno",
name: "object"
}
Since the scope (in JSR) is actually fake on npm, it would be listed as
@<jsr provider scope>/<jsr package scope>__<jsr package name>
So, this Self::name is equivalent to
@jsr/dunno__object
version: Version
The version currently selected
description: String
Package desription
dist: NpmCompDist
Distribution info
dependencies: HashMap<String, VersionReq>
Timestamp for package activities
Trait Implementations§
Source§impl AsRef<NpmCompPackage> for NpmCompPackage
impl AsRef<NpmCompPackage> for NpmCompPackage
Source§fn as_ref(&self) -> &NpmCompPackage
fn as_ref(&self) -> &NpmCompPackage
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for NpmCompPackage
impl Clone for NpmCompPackage
Source§fn clone(&self) -> NpmCompPackage
fn clone(&self) -> NpmCompPackage
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 moreSource§impl Debug for NpmCompPackage
impl Debug for NpmCompPackage
Source§impl<'de> Deserialize<'de> for NpmCompPackage
impl<'de> Deserialize<'de> for NpmCompPackage
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
Source§impl PartialEq for NpmCompPackage
impl PartialEq for NpmCompPackage
Source§impl Serialize for NpmCompPackage
impl Serialize for NpmCompPackage
impl Eq for NpmCompPackage
impl StructuralPartialEq for NpmCompPackage
Auto Trait Implementations§
impl Freeze for NpmCompPackage
impl RefUnwindSafe for NpmCompPackage
impl Send for NpmCompPackage
impl Sync for NpmCompPackage
impl Unpin for NpmCompPackage
impl UnwindSafe for NpmCompPackage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.