Struct PackageNpmMetadata

Source
pub struct PackageNpmMetadata {
Show 37 fields pub author: Option<HashMap<String, String>>, pub bin: Map<String, Value>, pub bugs: Option<HashMap<String, String>>, pub commit_oid: Option<String>, pub contributors: Vec<Map<String, Value>>, pub cpu: Vec<String>, pub deleted_by_id: Option<i64>, pub dependencies: HashMap<String, String>, pub description: Option<String>, pub dev_dependencies: HashMap<String, String>, pub directories: Option<HashMap<String, String>>, pub dist: Option<HashMap<String, String>>, pub engines: HashMap<String, String>, pub files: Vec<String>, pub git_head: Option<String>, pub has_shrinkwrap: Option<bool>, pub homepage: Option<String>, pub id: Option<String>, pub installation_command: Option<String>, pub keywords: Vec<String>, pub license: Option<String>, pub main: Option<String>, pub maintainers: Vec<Map<String, Value>>, pub man: Map<String, Value>, pub name: Option<String>, pub node_version: Option<String>, pub npm_user: Option<String>, pub npm_version: Option<String>, pub optional_dependencies: HashMap<String, String>, pub os: Vec<String>, pub peer_dependencies: HashMap<String, String>, pub published_via_actions: Option<bool>, pub readme: Option<String>, pub release_id: Option<i64>, pub repository: Option<HashMap<String, String>>, pub scripts: Map<String, Value>, pub version: Option<String>,
}
Expand description

PackageNpmMetadata

JSON schema
{
 "title": "Package NPM Metadata",
 "type": "object",
 "properties": {
   "author": {
     "oneOf": [
       {
         "type": "object",
         "additionalProperties": {
           "type": "string"
         }
       },
       {
         "type": "null"
       }
     ]
   },
   "bin": {
     "type": "object"
   },
   "bugs": {
     "oneOf": [
       {
         "type": "object",
         "additionalProperties": {
           "type": "string"
         }
       },
       {
         "type": "null"
       }
     ]
   },
   "commit_oid": {
     "type": "string"
   },
   "contributors": {
     "type": "array",
     "items": {
       "type": "object"
     }
   },
   "cpu": {
     "type": "array",
     "items": {
       "type": "string"
     }
   },
   "deleted_by_id": {
     "type": "integer"
   },
   "dependencies": {
     "type": "object",
     "additionalProperties": {
       "type": "string"
     }
   },
   "description": {
     "type": "string"
   },
   "dev_dependencies": {
     "type": "object",
     "additionalProperties": {
       "type": "string"
     }
   },
   "directories": {
     "oneOf": [
       {
         "type": "object",
         "additionalProperties": {
           "type": "string"
         }
       },
       {
         "type": "null"
       }
     ]
   },
   "dist": {
     "oneOf": [
       {
         "type": "object",
         "additionalProperties": {
           "type": "string"
         }
       },
       {
         "type": "null"
       }
     ]
   },
   "engines": {
     "type": "object",
     "additionalProperties": {
       "type": "string"
     }
   },
   "files": {
     "type": "array",
     "items": {
       "type": "string"
     }
   },
   "git_head": {
     "type": "string"
   },
   "has_shrinkwrap": {
     "type": "boolean"
   },
   "homepage": {
     "type": "string"
   },
   "id": {
     "type": "string"
   },
   "installation_command": {
     "type": "string"
   },
   "keywords": {
     "type": "array",
     "items": {
       "type": "string"
     }
   },
   "license": {
     "type": "string"
   },
   "main": {
     "type": "string"
   },
   "maintainers": {
     "type": "array",
     "items": {
       "type": "object"
     }
   },
   "man": {
     "type": "object"
   },
   "name": {
     "type": "string"
   },
   "node_version": {
     "type": "string"
   },
   "npm_user": {
     "type": "string"
   },
   "npm_version": {
     "type": "string"
   },
   "optional_dependencies": {
     "type": "object",
     "additionalProperties": {
       "type": "string"
     }
   },
   "os": {
     "type": "array",
     "items": {
       "type": "string"
     }
   },
   "peer_dependencies": {
     "type": "object",
     "additionalProperties": {
       "type": "string"
     }
   },
   "published_via_actions": {
     "type": "boolean"
   },
   "readme": {
     "type": "string"
   },
   "release_id": {
     "type": "integer"
   },
   "repository": {
     "oneOf": [
       {
         "type": "object",
         "additionalProperties": {
           "type": "string"
         }
       },
       {
         "type": "null"
       }
     ]
   },
   "scripts": {
     "type": "object"
   },
   "version": {
     "type": "string"
   }
 },
 "additionalProperties": false,
 "$schema": "http://json-schema.org/draft-07/schema"
}

Fields§

§author: Option<HashMap<String, String>>§bin: Map<String, Value>§bugs: Option<HashMap<String, String>>§commit_oid: Option<String>§contributors: Vec<Map<String, Value>>§cpu: Vec<String>§deleted_by_id: Option<i64>§dependencies: HashMap<String, String>§description: Option<String>§dev_dependencies: HashMap<String, String>§directories: Option<HashMap<String, String>>§dist: Option<HashMap<String, String>>§engines: HashMap<String, String>§files: Vec<String>§git_head: Option<String>§has_shrinkwrap: Option<bool>§homepage: Option<String>§id: Option<String>§installation_command: Option<String>§keywords: Vec<String>§license: Option<String>§main: Option<String>§maintainers: Vec<Map<String, Value>>§man: Map<String, Value>§name: Option<String>§node_version: Option<String>§npm_user: Option<String>§npm_version: Option<String>§optional_dependencies: HashMap<String, String>§os: Vec<String>§peer_dependencies: HashMap<String, String>§published_via_actions: Option<bool>§readme: Option<String>§release_id: Option<i64>§repository: Option<HashMap<String, String>>§scripts: Map<String, Value>§version: Option<String>

Implementations§

Trait Implementations§

Source§

impl Clone for PackageNpmMetadata

Source§

fn clone(&self) -> PackageNpmMetadata

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PackageNpmMetadata

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for PackageNpmMetadata

Source§

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 From<&PackageNpmMetadata> for PackageNpmMetadata

Source§

fn from(value: &PackageNpmMetadata) -> Self

Converts to this type from the input type.
Source§

impl From<PackageNpmMetadata> for PackageNpmMetadata

Source§

fn from(value: PackageNpmMetadata) -> Self

Converts to this type from the input type.
Source§

impl Serialize for PackageNpmMetadata

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryFrom<PackageNpmMetadata> for PackageNpmMetadata

Source§

type Error = String

The type returned in the event of a conversion error.
Source§

fn try_from(value: PackageNpmMetadata) -> Result<Self, String>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,