Struct rust_to_npm::Package
source · pub struct Package {
pub name: String,
pub version: String,
pub description: Option<String>,
pub repository: Option<String>,
pub keywords: Option<Vec<String>>,
pub authors: Option<Vec<String>>,
pub homepage: Option<String>,
pub license: Option<String>,
pub publish: Option<bool>,
}
Expand description
package def for npm from cargo
Fields§
§name: String
the package name
version: String
the version of the package
description: Option<String>
what the package is about.
repository: Option<String>
github repo url
keywords: Option<Vec<String>>
keywords for package
the authors of the package
homepage: Option<String>
the package home page
license: Option<String>
the license type
publish: Option<bool>
publish the package to crates.io and npm?
Trait Implementations§
source§impl<'de> Deserialize<'de> for Package
impl<'de> Deserialize<'de> for Package
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 RefUnwindSafe for Package
impl Send for Package
impl Sync for Package
impl Unpin for Package
impl UnwindSafe for Package
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