pub struct CandidateEntry {
pub id: String,
pub seq: u64,
pub page_id: String,
pub snapshot_hash: String,
pub status: CandidateStatus,
pub workspace_role: Option<String>,
pub promotion_target: Option<String>,
pub cleanup_policy: Option<String>,
pub notes: Option<String>,
pub timestamp_ms: Option<u128>,
}Expand description
A single scratch candidate record appended to scratch/index.jsonl.
id and seq are derived by put_scratch from the current index
length; callers do not supply them.
Fields§
§id: StringStable candidate id within this document’s scratch index (e.g. cand0).
seq: u64Monotonic sequence number (0-based, append order).
page_id: StringThe page or source document this candidate snapshots.
snapshot_hash: StringSHA-256 content hash of the stored .zen snapshot bytes (in objects/).
status: CandidateStatusLifecycle status at the time this entry was appended.
workspace_role: Option<String>Optional workflow role label (e.g. "hero", "fallback").
promotion_target: Option<String>Optional target to promote this candidate to (e.g. a branch or slot id).
cleanup_policy: Option<String>Optional policy controlling when this candidate may be cleaned up.
notes: Option<String>Optional free-text notes about this candidate.
timestamp_ms: Option<u128>Unix timestamp in milliseconds when this entry was created.
Trait Implementations§
Source§impl Clone for CandidateEntry
impl Clone for CandidateEntry
Source§fn clone(&self) -> CandidateEntry
fn clone(&self) -> CandidateEntry
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 CandidateEntry
impl Debug for CandidateEntry
Source§impl<'de> Deserialize<'de> for CandidateEntry
impl<'de> Deserialize<'de> for CandidateEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for CandidateEntry
impl PartialEq for CandidateEntry
Source§fn eq(&self, other: &CandidateEntry) -> bool
fn eq(&self, other: &CandidateEntry) -> bool
self and other values to be equal, and is used by ==.