struct Revisions {
files: BTreeMap<String, RepositoryPath>,
explicit: Option<(String, u64)>,
}Expand description
Revision-file edits that accompany a proposal.
Fields§
§files: BTreeMap<String, RepositoryPath>§explicit: Option<(String, u64)>The unit and value of an explicitly requested revision.
Implementations§
Source§impl Revisions
impl Revisions
fn replace( edits: &mut PlannedEdits, root: &RepositoryRoot, relative: &RepositoryPath, replacement: &str, ) -> Result<(), ProposalError>
fn new( state: &ReleaseState, request: ConfiguredProposal<'_>, ) -> Result<Self, ProposalError>
Sourcefn contribute(
&self,
edits: &mut PlannedEdits,
worktree: &RepositoryRoot,
proposed_applications: impl IntoIterator<Item = String>,
) -> Result<(), ProposalError>
fn contribute( &self, edits: &mut PlannedEdits, worktree: &RepositoryRoot, proposed_applications: impl IntoIterator<Item = String>, ) -> Result<(), ProposalError>
Reset proposed applications to revision 1 and apply the explicit revision, if any.
Auto Trait Implementations§
impl Freeze for Revisions
impl RefUnwindSafe for Revisions
impl Send for Revisions
impl Sync for Revisions
impl Unpin for Revisions
impl UnsafeUnpin for Revisions
impl UnwindSafe for Revisions
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