pub struct TaskResult {
pub task_id: String,
pub status: TaskStatus,
pub output: Option<TaskOutput>,
pub metrics: TaskExecutionMetrics,
pub resource_usage: TaskResourceUsage,
pub performance_metrics: TaskPerformanceMetrics,
pub error: Option<TaskError>,
pub logs: Vec<LogEntry>,
pub artifacts: Vec<Artifact>,
pub execution_time: Option<Duration>,
pub metadata: HashMap<String, String>,
}Expand description
Task execution result with comprehensive metrics
Fields§
§task_id: StringTask identifier
status: TaskStatusTask execution status
output: Option<TaskOutput>Execution output data
metrics: TaskExecutionMetricsExecution metrics
resource_usage: TaskResourceUsageResource usage during execution
performance_metrics: TaskPerformanceMetricsPerformance metrics
error: Option<TaskError>Error information (if failed)
logs: Vec<LogEntry>Execution logs
artifacts: Vec<Artifact>Execution artifacts
execution_time: Option<Duration>Task execution time (convenience field)
metadata: HashMap<String, String>Task metadata
Trait Implementations§
Source§impl Clone for TaskResult
impl Clone for TaskResult
Source§fn clone(&self) -> TaskResult
fn clone(&self) -> TaskResult
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 moreAuto Trait Implementations§
impl Freeze for TaskResult
impl !RefUnwindSafe for TaskResult
impl Send for TaskResult
impl Sync for TaskResult
impl Unpin for TaskResult
impl !UnwindSafe for TaskResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more