pub struct HookContext {
pub phase: u32,
pub project_root: PathBuf,
pub stage: Stage,
pub git_flow: GitFlowConfig,
pub shipped_version: Option<String>,
}Expand description
Context passed to every hook.
Fields§
§phase: u32Phase the workflow is on.
project_root: PathBufProject root.
stage: StageStage the workflow is entering.
git_flow: GitFlowConfigGit-flow branch model.
shipped_version: Option<String>The version VersionBump actually tagged, set once it runs (GAP-7).
ChangelogAppend reads this instead of re-deriving the version from
disk, so the changelog heading and the git tag never desync — in
particular when there is no version file and version::read_version
would otherwise error and fall back to the unreleased literal.
Trait Implementations§
Source§impl Clone for HookContext
impl Clone for HookContext
Source§fn clone(&self) -> HookContext
fn clone(&self) -> HookContext
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 HookContext
impl RefUnwindSafe for HookContext
impl Send for HookContext
impl Sync for HookContext
impl Unpin for HookContext
impl UnsafeUnpin for HookContext
impl UnwindSafe for HookContext
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