pub struct NpmCompMeta {
pub name: String,
pub versions: HashMap<Version, NpmCompPackage>,
pub description: String,
pub dist_tags: NpmCompDistTags,
pub time: NpmCompTimeInfo,
}
Expand description
JSR-to-npm equivalent package meta
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
versions: HashMap<Version, NpmCompPackage>
Get versions
description: String
Package desription
Distribution tags (only contain latest
for now)
See https://jsr.io/docs/api#npm-compatibility-registry-api on dist-tags
time: NpmCompTimeInfo
Timestamp for package activities
Trait Implementations§
Source§impl AsRef<NpmCompMeta> for NpmCompMeta
impl AsRef<NpmCompMeta> for NpmCompMeta
Source§fn as_ref(&self) -> &NpmCompMeta
fn as_ref(&self) -> &NpmCompMeta
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for NpmCompMeta
impl Clone for NpmCompMeta
Source§fn clone(&self) -> NpmCompMeta
fn clone(&self) -> NpmCompMeta
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 NpmCompMeta
impl Debug for NpmCompMeta
Source§impl<'de> Deserialize<'de> for NpmCompMeta
impl<'de> Deserialize<'de> for NpmCompMeta
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 NpmCompMeta
impl RefUnwindSafe for NpmCompMeta
impl Send for NpmCompMeta
impl Sync for NpmCompMeta
impl Unpin for NpmCompMeta
impl UnwindSafe for NpmCompMeta
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