pub struct ParsedOverrideKey {
pub parent_package: Option<String>,
pub parent_version_selector: Option<String>,
pub target_package: String,
pub target_version_selector: Option<String>,
}Expand description
Parsed structure of an override key.
Fields§
§parent_package: Option<String>Optional parent package (left side of >). None for bare-target keys.
parent_version_selector: Option<String>Optional version selector on the parent (e.g. react@1>zoo has
parent_version_selector = Some("1")).
target_package: StringThe target package name (the entry pnpm rewrites).
target_version_selector: Option<String>Optional version selector on the target (e.g. @types/react@<18 has
target_version_selector = Some("<18")).
Trait Implementations§
Source§impl Clone for ParsedOverrideKey
impl Clone for ParsedOverrideKey
Source§fn clone(&self) -> ParsedOverrideKey
fn clone(&self) -> ParsedOverrideKey
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 ParsedOverrideKey
impl Debug for ParsedOverrideKey
Source§impl PartialEq for ParsedOverrideKey
impl PartialEq for ParsedOverrideKey
Source§fn eq(&self, other: &ParsedOverrideKey) -> bool
fn eq(&self, other: &ParsedOverrideKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ParsedOverrideKey
impl StructuralPartialEq for ParsedOverrideKey
Auto Trait Implementations§
impl Freeze for ParsedOverrideKey
impl RefUnwindSafe for ParsedOverrideKey
impl Send for ParsedOverrideKey
impl Sync for ParsedOverrideKey
impl Unpin for ParsedOverrideKey
impl UnsafeUnpin for ParsedOverrideKey
impl UnwindSafe for ParsedOverrideKey
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.