Skip to main content

TrunkReleaseStrategy

Struct TrunkReleaseStrategy 

Source
pub struct TrunkReleaseStrategy<G, V, C, F> {
    pub git: G,
    pub vcs: Option<V>,
    pub parser: C,
    pub formatter: F,
    pub config: ReleaseConfig,
    pub force: bool,
}
Expand description

Concrete release strategy implementing the trunk-based release flow.

Fields§

§git: G§vcs: Option<V>§parser: C§formatter: F§config: ReleaseConfig§force: bool

When true, re-release the current tag if HEAD is at the latest tag.

Trait Implementations§

Source§

impl<G, V, C, F> ReleaseStrategy for TrunkReleaseStrategy<G, V, C, F>

Source§

fn plan(&self) -> Result<ReleasePlan, ReleaseError>

Plan the release without executing it.
Source§

fn execute(&self, plan: &ReleasePlan, dry_run: bool) -> Result<(), ReleaseError>

Execute the release.

Auto Trait Implementations§

§

impl<G, V, C, F> Freeze for TrunkReleaseStrategy<G, V, C, F>
where G: Freeze, C: Freeze, F: Freeze, V: Freeze,

§

impl<G, V, C, F> RefUnwindSafe for TrunkReleaseStrategy<G, V, C, F>

§

impl<G, V, C, F> Send for TrunkReleaseStrategy<G, V, C, F>
where G: Send, C: Send, F: Send, V: Send,

§

impl<G, V, C, F> Sync for TrunkReleaseStrategy<G, V, C, F>
where G: Sync, C: Sync, F: Sync, V: Sync,

§

impl<G, V, C, F> Unpin for TrunkReleaseStrategy<G, V, C, F>
where G: Unpin, C: Unpin, F: Unpin, V: Unpin,

§

impl<G, V, C, F> UnwindSafe for TrunkReleaseStrategy<G, V, C, F>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.