pub struct TaskInfo {Show 16 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_at: Option<String>,
pub lease_expires_at: Option<String>,
pub lease_expired: bool,
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.
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_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_expired: boolTrue when the claim has already lapsed.
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>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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