pub struct Record {Show 13 fields
pub path: String,
pub created_at: String,
pub task_id: String,
pub branch: String,
pub head: String,
pub working_tree: String,
pub matched: Match,
pub divergence: Divergence,
pub freshness: Freshness,
pub age_minutes: Option<i64>,
pub freshness_reason: String,
pub next_action: String,
pub next_action_withheld: String,
}Expand description
One durable record of the local half, as much of it as a reader needs to decide whether to open the file.
Fields§
§path: StringRepository-relative path. The body is at the path; it is not copied here.
created_at: StringWhen the record says it was written.
task_id: StringThe task it belongs to, or none.
branch: StringThe branch it was written on.
head: StringThe commit it was written at.
working_tree: StringWhether the working tree was clean or dirty then.
matched: MatchWhich tier of the resolution rule matched.
divergence: DivergenceHow far its commit is from this one.
freshness: FreshnessHow old it is, judged against session.freshness. Independent of divergence: a
record is routinely advanced and stale at once, and that pair is what a reader
must not collapse into “trustworthy”.
age_minutes: Option<i64>Its age in whole minutes, when it has a timestamp that parses.
freshness_reason: StringWhy it was judged that way, in one phrase. Never empty: a verdict a reader cannot act on is the failure this subsystem is being corrected for.
next_action: StringThe section a resuming worker acts on, when the record has one and is still current.
A handover’s Next Action; empty for a record that carries no sections, and
deliberately empty for one that is stale or invalid — see next_action_withheld.
next_action_withheld: StringWhy next_action is empty despite the record having one. Set only when it was
withheld, never when the record simply carries no such section, so that a reader can
tell “there is nothing to do” from “what there was to do is six days old”.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Record
impl<'de> Deserialize<'de> for Record
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>,
impl Eq for Record
Source§impl JsonSchema for Record
impl JsonSchema for Record
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreimpl StructuralPartialEq for Record
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnsafeUnpin for Record
impl UnwindSafe for Record
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.