pub struct PackageContext<'a> {
pub name: &'a str,
pub root: &'a Path,
pub manifest: &'a Value,
pub is_client_owned: bool,
}Expand description
Validated npm package context presented to a discovery plugin.
Fields§
§name: &'a strnpm package name.
root: &'a PathCanonical package root.
manifest: &'a ValueParsed package.json.
is_client_owned: boolWhether package metadata exposes authored browser code.
Trait Implementations§
Source§impl<'a> Clone for PackageContext<'a>
impl<'a> Clone for PackageContext<'a>
Source§fn clone(&self) -> PackageContext<'a>
fn clone(&self) -> PackageContext<'a>
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 moreimpl<'a> Copy for PackageContext<'a>
Auto Trait Implementations§
impl<'a> Freeze for PackageContext<'a>
impl<'a> RefUnwindSafe for PackageContext<'a>
impl<'a> Send for PackageContext<'a>
impl<'a> Sync for PackageContext<'a>
impl<'a> Unpin for PackageContext<'a>
impl<'a> UnsafeUnpin for PackageContext<'a>
impl<'a> UnwindSafe for PackageContext<'a>
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