pub struct ReleaseState {
pub status: ReleaseStatus,
pub scope: String,
pub scope_path: String,
pub current_version: Option<String>,
pub pending_commits: usize,
pub changelog: String,
pub version_consistent: Option<bool>,
}Expand description
发布阶段状态快照。
记录一个 scope 在某个时刻的发布状态快照。
与 [VersionState] 的关系:VersionState 聚焦版本号一致性,
ReleaseState 聚焦发布生命周期阶段。
Fields§
§status: ReleaseStatus发布生命周期状态。
scope: Stringscope 名称。
scope_path: Stringscope 相对路径。
current_version: Option<String>当前最新 tag 版本号(若有)。
pending_commits: usize自最新 tag 以来的未发布提交数。
changelog: String变更日志路径。
version_consistent: Option<bool>版本一致性检查结果(空表示未检查或不适用)。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReleaseState
impl RefUnwindSafe for ReleaseState
impl Send for ReleaseState
impl Sync for ReleaseState
impl Unpin for ReleaseState
impl UnsafeUnpin for ReleaseState
impl UnwindSafe for ReleaseState
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