pub struct PackageRecord {Show 13 fields
pub package_id: String,
pub identity: PackageIdentity,
pub source: PackageSource,
pub scope: PackageScope,
pub install_path: Option<String>,
pub resolved: Option<String>,
pub enabled: bool,
pub allow_scripts: bool,
pub extensions_approved: bool,
pub installed_at: OffsetDateTime,
pub content_hash: Option<String>,
pub filters: PackageResourceFilters,
pub disabled_resources: Vec<String>,
}Expand description
One installed (or configured) package in a scope’s packages.json.
Fields§
§package_id: StringShort package id from the manifest (or derived from the source).
identity: PackageIdentity§source: PackageSource§scope: PackageScope§install_path: Option<String>Materialized install root. None for local-path packages, which load
in place from source.
resolved: Option<String>Resolved npm version or git commit after install/update.
enabled: bool§allow_scripts: boolWhether --allow-scripts was granted at install time.
extensions_approved: boolProcess extensions never launch until this is set by an explicit approval step.
installed_at: OffsetDateTime§content_hash: Option<String>§filters: PackageResourceFilters§disabled_resources: Vec<String>Resource ids (see PackageResource::id) disabled by the user.
Trait Implementations§
Source§impl Clone for PackageRecord
impl Clone for PackageRecord
Source§fn clone(&self) -> PackageRecord
fn clone(&self) -> PackageRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PackageRecord
impl Debug for PackageRecord
Source§impl<'de> Deserialize<'de> for PackageRecord
impl<'de> Deserialize<'de> for PackageRecord
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 PackageRecord
impl PartialEq for PackageRecord
Source§fn eq(&self, other: &PackageRecord) -> bool
fn eq(&self, other: &PackageRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PackageRecord
impl Serialize for PackageRecord
impl StructuralPartialEq for PackageRecord
Auto Trait Implementations§
impl Freeze for PackageRecord
impl RefUnwindSafe for PackageRecord
impl Send for PackageRecord
impl Sync for PackageRecord
impl Unpin for PackageRecord
impl UnsafeUnpin for PackageRecord
impl UnwindSafe for PackageRecord
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