pub struct ReleaseStateBuilder { /* private fields */ }Expand description
ReleaseState 的构建器,替代多参数构造。
Implementations§
Source§impl ReleaseStateBuilder
impl ReleaseStateBuilder
Sourcepub fn status(self, value: ReleaseStatus) -> Self
pub fn status(self, value: ReleaseStatus) -> Self
必需:发布生命周期状态。
Sourcepub fn scope_path(self, value: impl Into<String>) -> Self
pub fn scope_path(self, value: impl Into<String>) -> Self
必需:scope 相对路径。
Sourcepub fn current_version(self, value: impl Into<String>) -> Self
pub fn current_version(self, value: impl Into<String>) -> Self
当前最新 tag 版本号。
Sourcepub fn pending_commits(self, value: usize) -> Self
pub fn pending_commits(self, value: usize) -> Self
自最新 tag 以来的未发布提交数(默认 0)。
Sourcepub fn version_consistent(self, value: bool) -> Self
pub fn version_consistent(self, value: bool) -> Self
版本一致性检查结果。
Sourcepub fn build(self) -> ReleaseState
pub fn build(self) -> ReleaseState
Trait Implementations§
Source§impl Debug for ReleaseStateBuilder
impl Debug for ReleaseStateBuilder
Auto Trait Implementations§
impl Freeze for ReleaseStateBuilder
impl RefUnwindSafe for ReleaseStateBuilder
impl Send for ReleaseStateBuilder
impl Sync for ReleaseStateBuilder
impl Unpin for ReleaseStateBuilder
impl UnsafeUnpin for ReleaseStateBuilder
impl UnwindSafe for ReleaseStateBuilder
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