pub struct ConfiguredProposal<'a> {
pub repository: &'a RepositoryRoot,
pub authority: &'a AuthorityBranch,
pub branch: &'a str,
pub commit_subject: &'a CommitSubject,
pub author: Author<'a>,
pub date: &'a str,
pub unit: Option<&'a str>,
pub version: Option<&'a str>,
pub revision: Option<u64>,
pub regenerate: bool,
}Expand description
Inputs for applying and synchronizing a configured release proposal.
Fields§
§repository: &'a RepositoryRootRepository whose origin holds both branches.
Authoritative branch the proposal is built on.
branch: &'a strMaintained proposal branch.
commit_subject: &'a CommitSubjectSubject template of the proposal commits.
Author and committer of the proposal commits.
date: &'a strRelease date written to changelogs.
unit: Option<&'a str>Unit an explicit version or revision applies to.
version: Option<&'a str>Explicit version for unit, replacing the automatic bump.
revision: Option<u64>Explicit revision for unit.
regenerate: boolRebuild the branch from the authority, discarding manual edits.
Implementations§
Source§impl ConfiguredProposal<'_>
impl ConfiguredProposal<'_>
Sourcepub(crate) fn explicit_versions(
self,
units: &[Unit],
) -> Result<BTreeMap<String, Version>, ProposalError>
pub(crate) fn explicit_versions( self, units: &[Unit], ) -> Result<BTreeMap<String, Version>, ProposalError>
Validate the requested unit, version, and revision, returning the explicit version proposal.
Trait Implementations§
Source§impl<'a> Clone for ConfiguredProposal<'a>
impl<'a> Clone for ConfiguredProposal<'a>
Source§fn clone(&self) -> ConfiguredProposal<'a>
fn clone(&self) -> ConfiguredProposal<'a>
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 moreimpl<'a> Copy for ConfiguredProposal<'a>
Auto Trait Implementations§
impl<'a> Freeze for ConfiguredProposal<'a>
impl<'a> RefUnwindSafe for ConfiguredProposal<'a>
impl<'a> Send for ConfiguredProposal<'a>
impl<'a> Sync for ConfiguredProposal<'a>
impl<'a> Unpin for ConfiguredProposal<'a>
impl<'a> UnsafeUnpin for ConfiguredProposal<'a>
impl<'a> UnwindSafe for ConfiguredProposal<'a>
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