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§
§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§
Source§impl PackageNpmMetadata
impl PackageNpmMetadata
pub fn builder() -> PackageNpmMetadata
Trait Implementations§
Source§impl Clone for PackageNpmMetadata
impl Clone for PackageNpmMetadata
Source§fn clone(&self) -> PackageNpmMetadata
fn clone(&self) -> PackageNpmMetadata
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 PackageNpmMetadata
impl Debug for PackageNpmMetadata
Source§impl<'de> Deserialize<'de> for PackageNpmMetadata
impl<'de> Deserialize<'de> for PackageNpmMetadata
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 From<&PackageNpmMetadata> for PackageNpmMetadata
impl From<&PackageNpmMetadata> for PackageNpmMetadata
Source§fn from(value: &PackageNpmMetadata) -> Self
fn from(value: &PackageNpmMetadata) -> Self
Converts to this type from the input type.
Source§impl From<PackageNpmMetadata> for PackageNpmMetadata
impl From<PackageNpmMetadata> for PackageNpmMetadata
Source§fn from(value: PackageNpmMetadata) -> Self
fn from(value: PackageNpmMetadata) -> Self
Converts to this type from the input type.
Source§impl Serialize for PackageNpmMetadata
impl Serialize for PackageNpmMetadata
Auto Trait Implementations§
impl Freeze for PackageNpmMetadata
impl RefUnwindSafe for PackageNpmMetadata
impl Send for PackageNpmMetadata
impl Sync for PackageNpmMetadata
impl Unpin for PackageNpmMetadata
impl UnwindSafe for PackageNpmMetadata
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