pub struct Solved<T> {
pub task_id: Option<String>,
pub request_id: Option<String>,
pub solution: T,
pub raw: Solution,
}Expand description
Completed task with its identifiers and solution.
This is an SDK-side aggregate rather than a wire type, so it is serializable for logging and storage but is never decoded from an API response.
Both execution modes return this shape, task_id included.
Fields§
§task_id: Option<String>Identifier the service assigned to the task.
Both endpoints supply one: the asynchronous path returns it from task
creation, and the synchronous path returns it alongside the result.
None only when the service omitted it.
request_id: Option<String>Request identifier returned by task creation.
solution: TDecoded or raw task solution.
raw: SolutionThe untouched solution JSON.
Whatever the typed model in solution does not declare stays
recoverable here, so a worker that starts returning a new field never
costs the caller data.
Trait Implementations§
impl<T: PartialEq> StructuralPartialEq for Solved<T>
Auto Trait Implementations§
impl<T> Freeze for Solved<T>where
T: Freeze,
impl<T> RefUnwindSafe for Solved<T>where
T: RefUnwindSafe,
impl<T> Send for Solved<T>where
T: Send,
impl<T> Sync for Solved<T>where
T: Sync,
impl<T> Unpin for Solved<T>where
T: Unpin,
impl<T> UnsafeUnpin for Solved<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Solved<T>where
T: UnwindSafe,
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