pub struct LockedPatch {
pub package: PackageName,
pub version: Version,
pub kind: LockedPatchKind,
pub provenance: String,
pub path: Utf8PathBuf,
}Expand description
One active patch entry recorded for stale-detection under
--locked. Carries enough information to reproduce the
patch decision: package name, patched version, source kind,
and the path as written in the declaring file (resolved
relative to the declaring file’s directory at apply time).
Fields§
§package: PackageName§version: Version§kind: LockedPatchKind§provenance: String§path: Utf8PathBufTrait Implementations§
Source§impl Clone for LockedPatch
impl Clone for LockedPatch
Source§fn clone(&self) -> LockedPatch
fn clone(&self) -> LockedPatch
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 LockedPatch
impl Debug for LockedPatch
impl Eq for LockedPatch
Source§impl PartialEq for LockedPatch
impl PartialEq for LockedPatch
Source§fn eq(&self, other: &LockedPatch) -> bool
fn eq(&self, other: &LockedPatch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LockedPatch
Auto Trait Implementations§
impl Freeze for LockedPatch
impl RefUnwindSafe for LockedPatch
impl Send for LockedPatch
impl Sync for LockedPatch
impl Unpin for LockedPatch
impl UnsafeUnpin for LockedPatch
impl UnwindSafe for LockedPatch
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.