pub struct TaskDetailReceipt {
pub id: Option<Uuid>,
pub payload_hash: Option<String>,
pub payment_token: Option<TaskDetailReceiptPaymentToken>,
}Expand description
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.
JSON schema
{
"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",
"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",
"PYUSD",
null
]
}
},
"additionalProperties": false
}Fields§
§id: Option<Uuid>Receipt id; resolves the public /receipt/{id} page.
payload_hash: Option<String>SHA-256 payload hash (also accepted by /receipt/{id}).
payment_token: Option<TaskDetailReceiptPaymentToken>The settlement rail named by the receipt (gh#80, D-03); null when the chain default applies.
Trait Implementations§
Source§impl Clone for TaskDetailReceipt
impl Clone for TaskDetailReceipt
Source§fn clone(&self) -> TaskDetailReceipt
fn clone(&self) -> TaskDetailReceipt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TaskDetailReceipt
impl Debug for TaskDetailReceipt
Source§impl Default for TaskDetailReceipt
impl Default for TaskDetailReceipt
Source§impl<'de> Deserialize<'de> for TaskDetailReceipt
impl<'de> Deserialize<'de> for TaskDetailReceipt
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TaskDetailReceipt
impl RefUnwindSafe for TaskDetailReceipt
impl Send for TaskDetailReceipt
impl Sync for TaskDetailReceipt
impl Unpin for TaskDetailReceipt
impl UnsafeUnpin for TaskDetailReceipt
impl UnwindSafe for TaskDetailReceipt
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