pub struct RemoteTask {Show 20 fields
pub id: RemoteTaskId,
pub node_id: NodeId,
pub agent_id: String,
pub agent_name: String,
pub title: String,
pub description: Option<String>,
pub status: RemoteTaskStatus,
pub progress: f32,
pub progress_message: Option<String>,
pub current_step: Option<u32>,
pub total_steps: Option<u32>,
pub priority: TaskPriority,
pub started_at: DateTime<Utc>,
pub completed_at: Option<DateTime<Utc>>,
pub eta: Option<DateTime<Utc>>,
pub result: Option<TaskResult>,
pub error: Option<String>,
pub resources: ResourceUsage,
pub logs: Vec<TaskLogEntry>,
pub metadata: HashMap<String, Value>,
}Expand description
A task running on a remote node
Fields§
§id: RemoteTaskIdUnique task identifier
node_id: NodeIdNode this task is running on
agent_id: StringAgent executing this task
agent_name: StringAgent name
title: StringTask title/description
description: Option<String>Detailed description
status: RemoteTaskStatusTask status
progress: f32Progress (0.0 - 1.0)
progress_message: Option<String>Progress message
current_step: Option<u32>Current step (for multi-step tasks)
total_steps: Option<u32>Total steps
priority: TaskPriorityTask priority
started_at: DateTime<Utc>Task started at
completed_at: Option<DateTime<Utc>>Task completed at
eta: Option<DateTime<Utc>>Estimated completion time
result: Option<TaskResult>Task result (if completed)
error: Option<String>Error message (if failed)
resources: ResourceUsageResource usage
logs: Vec<TaskLogEntry>Task logs (recent entries)
metadata: HashMap<String, Value>Custom metadata
Trait Implementations§
Source§impl Clone for RemoteTask
impl Clone for RemoteTask
Source§fn clone(&self) -> RemoteTask
fn clone(&self) -> RemoteTask
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 RemoteTask
impl Debug for RemoteTask
Source§impl<'de> Deserialize<'de> for RemoteTask
impl<'de> Deserialize<'de> for RemoteTask
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 RemoteTask
impl RefUnwindSafe for RemoteTask
impl Send for RemoteTask
impl Sync for RemoteTask
impl Unpin for RemoteTask
impl UnwindSafe for RemoteTask
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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