pub struct TaskGetResponse {
pub id: String,
pub payload: Vec<u8>,
pub content_type: Option<String>,
pub run_policy: RunPolicy,
pub constraints: TaskConstraints,
pub metadata: TaskMetadata,
pub parent_task_id: Option<String>,
pub created_at: u64,
pub updated_at: Option<u64>,
}Expand description
Task get response payload.
This struct represents the stable schema for the task get endpoint response.
Fields§
§id: StringTask identifier as a stable string.
payload: Vec<u8>Task payload bytes (serde Vec<u8> JSON array of numbers).
content_type: Option<String>Optional payload content-type hint.
run_policy: RunPolicyTask run policy.
constraints: TaskConstraintsTask constraints.
metadata: TaskMetadataTask metadata including priority.
parent_task_id: Option<String>Parent task identifier, if this task is a child in a workflow hierarchy.
created_at: u64Task creation timestamp derived from the WAL event.
updated_at: Option<u64>Task update timestamp (null until update events exist).
Trait Implementations§
Source§impl Clone for TaskGetResponse
impl Clone for TaskGetResponse
Source§fn clone(&self) -> TaskGetResponse
fn clone(&self) -> TaskGetResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 TaskGetResponse
impl Debug for TaskGetResponse
Auto Trait Implementations§
impl Freeze for TaskGetResponse
impl RefUnwindSafe for TaskGetResponse
impl Send for TaskGetResponse
impl Sync for TaskGetResponse
impl Unpin for TaskGetResponse
impl UnsafeUnpin for TaskGetResponse
impl UnwindSafe for TaskGetResponse
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