use serde::Deserialize;
use serde::Serialize;
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
#[non_exhaustive]
pub struct RuntimeWorktree {
pub worktree_root: String,
pub base_commit: String,
pub head_commit: String,
pub ownership: RuntimeWorktreeOwnership,
pub cleanup_policy: RuntimeWorktreeCleanupPolicy,
pub cleanup_state: RuntimeWorktreeCleanupState,
pub parent_dirty_excluded: bool,
}
#[derive(Debug, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum RuntimeWorktreeOwnership {
RuntimeOwned,
Unknown(String),
}
#[derive(Debug, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum RuntimeWorktreeCleanupPolicy {
RemoveIfClean,
Unknown(String),
}
#[derive(Debug, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum RuntimeWorktreeCleanupState {
Active,
Cleaned,
Retained,
CleanupFailed,
Unknown(String),
}