pub struct WorkOrderView {Show 17 fields
pub object_id: ObjectId,
pub object_type: String,
pub coin_type: String,
pub buyer: String,
pub payee_launchpad_account_id: ObjectId,
pub payee_agent_treasury_id: ObjectId,
pub locked_sui: u64,
pub amount: u64,
pub spec_hash: Vec<u8>,
pub spec_url: String,
pub created_at_ms: u64,
pub deadline_ms: u64,
pub receipt_submitted_at_ms: u64,
pub dispute_window_ms: u64,
pub receipt_hash: Vec<u8>,
pub receipt_url: String,
pub status: WorkOrderStatus,
}Expand description
Read-only snapshot of a WorkOrder<T> shared object.
Fields§
§object_id: ObjectIdThe work order’s ObjectId.
object_type: StringFull object type, including the <T> parameter.
coin_type: StringInner T extracted from WorkOrder<T> — the payee’s coin type.
buyer: StringBuyer who created the order and locked SUI.
payee_launchpad_account_id: ObjectIdPayee’s LaunchpadAccount
payee_agent_treasury_id: ObjectIdPayee’s AgentTreasury
locked_sui: u64MIST of SUI currently locked in the order (may be 0 after settlement).
amount: u64Original amount locked at creation.
spec_hash: Vec<u8>Free-form content hash of the work spec.
spec_url: StringOff-chain URL to the human-readable spec.
created_at_ms: u64Creation time (UNIX ms).
deadline_ms: u64Deadline (UNIX ms) for refund eligibility if no receipt yet.
receipt_submitted_at_ms: u64Receipt submission time (UNIX ms). 0 if not yet submitted.
dispute_window_ms: u64Length of the post-receipt dispute window (ms).
receipt_hash: Vec<u8>Receipt content hash (empty if not submitted).
receipt_url: StringOff-chain receipt URL (empty string if not submitted).
status: WorkOrderStatusStatus code parsed into the enum.
Implementations§
Trait Implementations§
Source§impl Clone for WorkOrderView
impl Clone for WorkOrderView
Source§fn clone(&self) -> WorkOrderView
fn clone(&self) -> WorkOrderView
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more