pub struct TaskInfo {Show 19 fields
pub key: String,
pub title: String,
pub description: Option<String>,
pub status: String,
pub depends_on: Vec<String>,
pub blocked: bool,
pub claimed_by: Option<String>,
pub claimed_session: Option<String>,
pub claimed_at: Option<String>,
pub lease_expires_at: Option<String>,
pub lease_seconds_remaining: Option<i64>,
pub lease_expired: bool,
pub lapsed_holder: Option<String>,
pub result: Option<String>,
pub metadata: Value,
pub attachments: Vec<AttachmentMeta>,
pub created_by: Option<String>,
pub created_at: String,
pub updated_at: String,
}Fields§
§key: String§title: String§description: Option<String>§status: StringOne of open, claimed, done, cancelled. A claim whose lease
lapsed reads as open: anyone may take it, the former holder
included (see lapsed_holder).
depends_on: Vec<String>Keys of tasks this one depends on.
blocked: boolTrue while any dependency is not yet done/cancelled. Blocked tasks cannot be claimed.
claimed_by: Option<String>§claimed_session: Option<String>Which of claimed_by’s working contexts holds the claim; null is
their shared session. A claim belongs to a session, not to a person —
your own other session cannot renew, release or steal this one.
claimed_at: Option<String>§lease_expires_at: Option<String>When the current claim expires. After this instant another agent may steal the task, so renew the lease if you are still working on it.
lease_seconds_remaining: Option<i64>Seconds left on the claim, so you can decide whether waiting is reasonable without doing the arithmetic.
lease_expired: boolTrue when the last claim lapsed and nobody has claimed the task
since: it is open, and lapsed_holder says who let it go.
lapsed_holder: Option<String>Who held the claim that lapsed, while the task stays unclaimed. Not a holder: nobody has to be asked before claiming it.
result: Option<String>§metadata: Value§attachments: Vec<AttachmentMeta>Files attached to this task; fetch content with get_attachment.
created_by: Option<String>§created_at: String§updated_at: StringTrait Implementations§
Source§impl JsonSchema for TaskInfo
impl JsonSchema for TaskInfo
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 moreAuto Trait Implementations§
impl Freeze for TaskInfo
impl RefUnwindSafe for TaskInfo
impl Send for TaskInfo
impl Sync for TaskInfo
impl Unpin for TaskInfo
impl UnsafeUnpin for TaskInfo
impl UnwindSafe for TaskInfo
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more