pub struct PackageJsonSummary {
pub name: Option<String>,
pub version: Option<String>,
pub description: Option<String>,
pub main: Option<String>,
pub module: Option<String>,
pub browser: Option<String>,
pub dependencies: Vec<String>,
}Expand description
High-signal summary fields from package.json.
Fields§
§name: Option<String>Package name.
version: Option<String>Package version.
description: Option<String>Description field.
main: Option<String>Main entry point.
module: Option<String>Module entry point.
browser: Option<String>Browser field when present.
dependencies: Vec<String>Dependency names.
Trait Implementations§
Source§impl Clone for PackageJsonSummary
impl Clone for PackageJsonSummary
Source§fn clone(&self) -> PackageJsonSummary
fn clone(&self) -> PackageJsonSummary
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 PackageJsonSummary
impl Debug for PackageJsonSummary
Source§impl<'de> Deserialize<'de> for PackageJsonSummary
impl<'de> Deserialize<'de> for PackageJsonSummary
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 PackageJsonSummary
impl PartialEq for PackageJsonSummary
Source§impl Serialize for PackageJsonSummary
impl Serialize for PackageJsonSummary
impl Eq for PackageJsonSummary
impl StructuralPartialEq for PackageJsonSummary
Auto Trait Implementations§
impl Freeze for PackageJsonSummary
impl RefUnwindSafe for PackageJsonSummary
impl Send for PackageJsonSummary
impl Sync for PackageJsonSummary
impl Unpin for PackageJsonSummary
impl UnsafeUnpin for PackageJsonSummary
impl UnwindSafe for PackageJsonSummary
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.