pub struct ActivePatch {
pub name: PackageName,
pub source: PatchSource,
pub provenance: PatchProvenance,
pub manifest_path: PathBuf,
pub manifest_dir: PathBuf,
pub declared_path: PathBuf,
pub package: Package,
}Expand description
One fully-resolved patch entry. Pairs the typed source with
the loaded patch Package so downstream consumers do not
need to re-parse the patched cabin.toml.
Fields§
§name: PackageName§source: PatchSource§provenance: PatchProvenance§manifest_path: PathBufAbsolute path of the patched package’s cabin.toml.
manifest_dir: PathBufAbsolute path of the patched package’s directory.
declared_path: PathBufThe path as written in the declaring file. Useful for metadata / lockfile output where we prefer to show the user-visible relative form rather than the absolute canonical path.
package: PackageParsed patched Package. Carried through so the
loader does not have to re-parse the manifest.
Trait Implementations§
Source§impl Clone for ActivePatch
impl Clone for ActivePatch
Source§fn clone(&self) -> ActivePatch
fn clone(&self) -> ActivePatch
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 moreAuto Trait Implementations§
impl Freeze for ActivePatch
impl RefUnwindSafe for ActivePatch
impl Send for ActivePatch
impl Sync for ActivePatch
impl Unpin for ActivePatch
impl UnsafeUnpin for ActivePatch
impl UnwindSafe for ActivePatch
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