Skip to main content

levi_core/entities/
claim.rs

1use myko::prelude::*;
2
3/// Advisory claim. id = task_id, so a SET overwrites any prior claim and
4/// "newest wins" falls out of LWW replay order. Ignored after ttl expires.
5#[myko_item]
6pub struct Claim {
7    pub project_id: String,
8    pub task_id: String,
9    pub dev: String,
10    pub machine: String,
11    pub worktree: String,
12    /// RFC3339
13    pub created: String,
14    pub ttl_secs: u64,
15}