pub(crate) struct Plan {
holder: RepositoryPath,
before_holder: Vec<u8>,
after_holder: Vec<u8>,
changelog: Option<ChangelogEdit>,
}Expand description
A stale-safe edit of a version holder and its unit changelog.
Fields§
§holder: RepositoryPath§before_holder: Vec<u8>§after_holder: Vec<u8>§changelog: Option<ChangelogEdit>Implementations§
Source§impl Plan
impl Plan
Sourcepub(crate) fn new(
root: &RepositoryRoot,
holder: Holder<'_>,
changelog: Option<&RepositoryPath>,
target: &Version,
date: &str,
entry: &Entry,
) -> Result<Self, HolderError>
pub(crate) fn new( root: &RepositoryRoot, holder: Holder<'_>, changelog: Option<&RepositoryPath>, target: &Version, date: &str, entry: &Entry, ) -> Result<Self, HolderError>
Capture and render a release of a version holder without Cargo discovery.
§Errors
Returns an error for unsafe paths, invalid versions, or unreadable files.
pub(super) fn contribute_edits( &self, edits: &mut PlannedEdits, ) -> Result<(), HolderError>
Trait Implementations§
impl Eq for Plan
impl StructuralPartialEq for Plan
Auto Trait Implementations§
impl Freeze for Plan
impl RefUnwindSafe for Plan
impl Send for Plan
impl Sync for Plan
impl Unpin for Plan
impl UnsafeUnpin for Plan
impl UnwindSafe for Plan
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.