pub struct DeclaredPatch {
pub source: PatchSource,
pub declared_in: PathBuf,
pub provenance: PatchProvenance,
}Expand description
One patch entry as declared in a single source file. Carries
the relative source value plus the absolute path of the file
that declared it so the orchestration layer can resolve any
relative paths against the right base directory.
Fields§
§source: PatchSource§declared_in: PathBufAbsolute path of the file that declared this patch
(cabin.toml for manifest patches, .cabin/config.toml
for config patches). Used as the base for resolving
relative path values.
provenance: PatchProvenanceTrait Implementations§
Source§impl Clone for DeclaredPatch
impl Clone for DeclaredPatch
Source§fn clone(&self) -> DeclaredPatch
fn clone(&self) -> DeclaredPatch
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 DeclaredPatch
impl Debug for DeclaredPatch
Source§impl PartialEq for DeclaredPatch
impl PartialEq for DeclaredPatch
Source§fn eq(&self, other: &DeclaredPatch) -> bool
fn eq(&self, other: &DeclaredPatch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DeclaredPatch
impl StructuralPartialEq for DeclaredPatch
Auto Trait Implementations§
impl Freeze for DeclaredPatch
impl RefUnwindSafe for DeclaredPatch
impl Send for DeclaredPatch
impl Sync for DeclaredPatch
impl Unpin for DeclaredPatch
impl UnsafeUnpin for DeclaredPatch
impl UnwindSafe for DeclaredPatch
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.