pub struct EphemeralMarker {
pub ttl_seconds: u32,
pub created_at: DateTime<Utc>,
pub auto_collapse: bool,
}Expand description
Ephemeral thread metadata. Lives at the tail of ThreadRecord.
Ephemeral threads are spawned for short-lived agent work that should not
crowd heddle log or the thread workspace. If not promoted before
ttl_seconds elapses, the thread auto-collapses on the next read-side
sweep (heddle status, heddle log, heddle thread list).
Fields§
§ttl_seconds: u32Time-to-live, in seconds, measured from ThreadRecord::created_at.
created_at: DateTime<Utc>When this marker was attached. Usually equal to the thread’s own
created_at, but kept separately so a thread can be retroactively
marked ephemeral by a later operation if we ever need to.
auto_collapse: boolWhen true (the default), the auto-collapse sweep collapses the
thread on TTL expiry. Setting false produces a warning at expiry
but leaves the thread alive — useful for “ephemeral but I’m not
done yet” situations during debugging.
Implementations§
Trait Implementations§
Source§impl Clone for EphemeralMarker
impl Clone for EphemeralMarker
Source§impl Debug for EphemeralMarker
impl Debug for EphemeralMarker
Source§impl<'de> Deserialize<'de> for EphemeralMarker
impl<'de> Deserialize<'de> for EphemeralMarker
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 EphemeralMarker
Source§impl JsonSchema for EphemeralMarker
impl JsonSchema for EphemeralMarker
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 more