pub struct V2Dependency {Show 18 fields
pub version: String,
pub name: Option<String>,
pub resolved: Option<String>,
pub integrity: Option<String>,
pub bundled: bool,
pub is_dev: bool,
pub is_optional: bool,
pub is_dev_optional: bool,
pub is_in_bundle: bool,
pub has_install_script: bool,
pub has_shrink_wrap: bool,
pub dependencies: Option<HashMap<String, String>>,
pub dev_dependencies: Option<HashMap<String, String>>,
pub optional_dependencies: Option<HashMap<String, String>>,
pub peer_dependencies: Option<HashMap<String, String>>,
pub license: Option<String>,
pub engines: Option<HashMap<String, String>>,
pub bin: Option<HashMap<String, String>>,
}
Fields§
§version: String
§name: Option<String>
§resolved: Option<String>
§integrity: Option<String>
§bundled: bool
§is_dev: bool
§is_optional: bool
§is_dev_optional: bool
§is_in_bundle: bool
§has_install_script: bool
§has_shrink_wrap: bool
§dependencies: Option<HashMap<String, String>>
§dev_dependencies: Option<HashMap<String, String>>
§optional_dependencies: Option<HashMap<String, String>>
§peer_dependencies: Option<HashMap<String, String>>
§license: Option<String>
§engines: Option<HashMap<String, String>>
§bin: Option<HashMap<String, String>>
Trait Implementations§
Source§impl Clone for V2Dependency
impl Clone for V2Dependency
Source§fn clone(&self) -> V2Dependency
fn clone(&self) -> V2Dependency
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for V2Dependency
impl Debug for V2Dependency
Source§impl Default for V2Dependency
impl Default for V2Dependency
Source§fn default() -> V2Dependency
fn default() -> V2Dependency
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for V2Dependency
impl<'de> Deserialize<'de> for V2Dependency
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 V2Dependency
impl PartialEq for V2Dependency
Source§impl Serialize for V2Dependency
impl Serialize for V2Dependency
impl Eq for V2Dependency
impl StructuralPartialEq for V2Dependency
Auto Trait Implementations§
impl Freeze for V2Dependency
impl RefUnwindSafe for V2Dependency
impl Send for V2Dependency
impl Sync for V2Dependency
impl Unpin for V2Dependency
impl UnwindSafe for V2Dependency
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