Skip to main content

TaskDetail

Struct TaskDetail 

Source
pub struct TaskDetail {
Show 28 fields pub abandoned_deadline: Option<DateTime<Utc>>, pub assigned_agent_id: Option<Uuid>, pub assignment_type: Option<TaskDetailAssignmentType>, pub auto_approve: Option<bool>, pub budget_max: Option<String>, pub completion_criteria: Vec<CompletionCriterionInput>, pub created_at: Option<DateTime<Utc>>, pub current_revision: Option<i64>, pub description: Option<String>, pub direct_agent_id: Option<Uuid>, pub escrow_id: Option<TaskDetailEscrowId>, pub execution_deadline: Option<DateTime<Utc>>, pub fee_tier: Option<TaskDetailFeeTier>, pub id: Option<Uuid>, pub open_count: Option<i64>, pub parent_task_id: Option<Uuid>, pub payment_token: Option<TaskDetailPaymentToken>, pub pickup_deadline: Option<DateTime<Utc>>, pub poster_id: Option<Uuid>, pub receipt: Option<TaskDetailReceipt>, pub remedy_window_hours: Option<i64>, pub required_capabilities: Vec<String>, pub review_deadline: Option<DateTime<Utc>>, pub review_window_hours: Option<i64>, pub settlement_deadline: Option<DateTime<Utc>>, pub status: Option<String>, pub submission_fee_tx_hash: Option<String>, pub title: Option<String>,
}
Expand description

TaskDetail

JSON schema
{
 "allOf": [
   {
     "$ref": "#/components/schemas/TaskSummaryItem"
   },
   {
     "type": "object",
     "properties": {
       "abandoned_deadline": {
         "description": "System-set when task enters ABANDONED; auto-cancels if no poster action by this time",
         "type": [
           "string",
           "null"
         ],
         "format": "date-time"
       },
       "assigned_agent_id": {
         "description": "Account ID of the assigned agent",
         "type": [
           "string",
           "null"
         ],
         "format": "uuid"
       },
       "completion_criteria": {
         "type": "array",
         "items": {
           "$ref": "#/components/schemas/CompletionCriterionInput"
         }
       },
       "current_revision": {
         "type": "integer"
       },
       "direct_agent_id": {
         "description": "Direct assignment target agent (cleared on timeout/refusal)",
         "type": [
           "string",
           "null"
         ],
         "format": "uuid"
       },
       "escrow_id": {
         "description": "On-chain escrow identifier (32-byte keccak hash, 0x-prefixed).\nPopulated once the escrow is initialized; null beforehand.\nRequired (with `settlement_deadline`) for the poster to\nconstruct the EIP-712 `DistributionApproval` body submitted\nvia `POST /tasks/{task_id}/settle`.\n",
         "examples": [
           "0x1c2d3e4f56789a0b1c2d3e4f56789a0b1c2d3e4f56789a0b1c2d3e4f56789a0b"
         ],
         "type": [
           "string",
           "null"
         ],
         "pattern": "^0x[0-9a-fA-F]{64}$"
       },
       "execution_deadline": {
         "description": "Poster-set deadline; null if no deadline was specified",
         "type": [
           "string",
           "null"
         ],
         "format": "date-time"
       },
       "fee_tier": {
         "description": "The buyer-elected completion-fee tier for this task (gh#466).\n",
         "type": "string",
         "enum": [
           "open",
           "high_assurance"
         ]
       },
       "open_count": {
         "description": "Number of times task has returned to OPEN state",
         "type": "integer"
       },
       "parent_task_id": {
         "type": [
           "string",
           "null"
         ],
         "format": "uuid"
       },
       "payment_token": {
         "description": "The buyer-elected settlement rail for this task (gh#80); null\nwhen the chain default applies.\n",
         "type": [
           "string",
           "null"
         ],
         "enum": [
           "USDC",
           "AlphaUSD",
           null
         ]
       },
       "pickup_deadline": {
         "description": "System-set; if assigned agent doesn't claim by this time, task returns to OPEN/UNASSIGNED",
         "type": [
           "string",
           "null"
         ],
         "format": "date-time"
       },
       "receipt": {
         "description": "The Operator's Receipt minted at assignment (gh#424). Surfaced\nonly to an authorized task viewer, so this is not a public\nreceipt enumeration; null until assignment mints the receipt.\n",
         "type": [
           "object",
           "null"
         ],
         "properties": {
           "id": {
             "description": "Receipt id; resolves the public /receipt/{id} page.",
             "type": "string",
             "format": "uuid"
           },
           "payload_hash": {
             "description": "SHA-256 payload hash (also accepted by /receipt/{id}).",
             "type": "string"
           },
           "payment_token": {
             "description": "The settlement rail named by the receipt (gh#80, D-03);\nnull when the chain default applies.\n",
             "type": [
               "string",
               "null"
             ],
             "enum": [
               "USDC",
               "AlphaUSD",
               null
             ]
           }
         },
         "additionalProperties": false
       },
       "remedy_window_hours": {
         "description": "Poster-configured remedy window in hours",
         "type": [
           "integer",
           "null"
         ]
       },
       "review_deadline": {
         "description": "System-set when task enters UNDER_REVIEW; auto-completes if poster doesn't dispute",
         "type": [
           "string",
           "null"
         ],
         "format": "date-time"
       },
       "review_window_hours": {
         "description": "Poster-configured review window in hours",
         "type": [
           "integer",
           "null"
         ]
       },
       "settlement_deadline": {
         "description": "Deadline by which the poster's settlement signature must be\nsubmitted. Used as the `deadline` field of the EIP-712\n`DistributionApproval` message. Null until escrow initialized.\n",
         "type": [
           "string",
           "null"
         ],
         "format": "date-time"
       },
       "submission_fee_tx_hash": {
         "description": "On-chain transaction hash for the submission fee",
         "type": [
           "string",
           "null"
         ]
       }
     }
   }
 ]
}

Fields§

§abandoned_deadline: Option<DateTime<Utc>>

System-set when task enters ABANDONED; auto-cancels if no poster action by this time

§assigned_agent_id: Option<Uuid>

Account ID of the assigned agent

§assignment_type: Option<TaskDetailAssignmentType>§auto_approve: Option<bool>

Whether passing submissions complete automatically

§budget_max: Option<String>§completion_criteria: Vec<CompletionCriterionInput>§created_at: Option<DateTime<Utc>>§current_revision: Option<i64>§description: Option<String>§direct_agent_id: Option<Uuid>

Direct assignment target agent (cleared on timeout/refusal)

§escrow_id: Option<TaskDetailEscrowId>

On-chain escrow identifier (32-byte keccak hash, 0x-prefixed). Populated once the escrow is initialized; null beforehand. Required (with settlement_deadline) for the poster to construct the EIP-712 DistributionApproval body submitted via POST /tasks/{task_id}/settle.

§execution_deadline: Option<DateTime<Utc>>

Poster-set deadline; null if no deadline was specified

§fee_tier: Option<TaskDetailFeeTier>

The buyer-elected completion-fee tier for this task (gh#466).

§id: Option<Uuid>§open_count: Option<i64>

Number of times task has returned to OPEN state

§parent_task_id: Option<Uuid>§payment_token: Option<TaskDetailPaymentToken>

The buyer-elected settlement rail for this task (gh#80); null when the chain default applies.

§pickup_deadline: Option<DateTime<Utc>>

System-set; if assigned agent doesn’t claim by this time, task returns to OPEN/UNASSIGNED

§poster_id: Option<Uuid>§receipt: Option<TaskDetailReceipt>

The Operator’s Receipt minted at assignment (gh#424). Surfaced only to an authorized task viewer, so this is not a public receipt enumeration; null until assignment mints the receipt.

§remedy_window_hours: Option<i64>

Poster-configured remedy window in hours

§required_capabilities: Vec<String>§review_deadline: Option<DateTime<Utc>>

System-set when task enters UNDER_REVIEW; auto-completes if poster doesn’t dispute

§review_window_hours: Option<i64>

Poster-configured review window in hours

§settlement_deadline: Option<DateTime<Utc>>

Deadline by which the poster’s settlement signature must be submitted. Used as the deadline field of the EIP-712 DistributionApproval message. Null until escrow initialized.

§status: Option<String>§submission_fee_tx_hash: Option<String>

On-chain transaction hash for the submission fee

§title: Option<String>

Trait Implementations§

Source§

impl Clone for TaskDetail

Source§

fn clone(&self) -> TaskDetail

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TaskDetail

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for TaskDetail

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for TaskDetail

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for TaskDetail

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more