pub struct ChangeState {
pub owner: String,
pub workspace_id: String,
pub active_workspace: Option<String>,
pub base_revision: ContentHash,
pub revision_id: ContentHash,
pub idempotency_key: String,
pub cone: Vec<String>,
}Expand description
Materialized identity and current revision of one logical change.
Revision history remains in the append-only op log. The view keeps the latest exact revision needed for CAS and review selection, plus the create binding needed to make workspace retries deterministic.
Fields§
§owner: StringChannel allowed to checkpoint this change.
workspace_id: StringWorkspace identity originally bound to the change. Retained after archival so a delayed retry cannot target a later workspace that reused the same name.
active_workspace: Option<String>Active mutable workspace, or None after archival.
base_revision: ContentHashImmutable revision from which the change began.
revision_id: ContentHashLatest immutable revision published for the change. This equals
base_revision until the first checkpoint.
idempotency_key: StringOwner-scoped identity of the create request.
cone: Vec<String>Directory prefixes the change declared it works within; empty means the whole tree.
Trait Implementations§
Source§impl Clone for ChangeState
impl Clone for ChangeState
Source§fn clone(&self) -> ChangeState
fn clone(&self) -> ChangeState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ChangeState
impl Debug for ChangeState
Source§impl PartialEq for ChangeState
impl PartialEq for ChangeState
Source§fn eq(&self, other: &ChangeState) -> bool
fn eq(&self, other: &ChangeState) -> bool
self and other values to be equal, and is used by ==.