pub enum TaskKind {
Command {
command: String,
pid: Option<u32>,
},
SubAgent {
session_key: String,
label: Option<String>,
},
CronJob {
job_id: String,
job_name: Option<String>,
},
McpTool {
server: String,
tool: String,
},
Browser {
action: String,
url: Option<String>,
},
FileOp {
operation: String,
path: String,
},
WebRequest {
url: String,
method: String,
},
Custom {
name: String,
details: Option<String>,
},
}Expand description
Kind of task — determines behavior and display.
Variants§
Command
Shell command execution
SubAgent
Sub-agent session
CronJob
Cron job execution
McpTool
MCP tool call
Browser
Browser automation
FileOp
File operation (download, upload, copy)
WebRequest
Web request
Custom
Generic/custom task
Implementations§
Source§impl TaskKind
impl TaskKind
Sourcepub fn display_name(&self) -> &str
pub fn display_name(&self) -> &str
Get a short display name for the task kind.
Sourcepub fn description(&self) -> String
pub fn description(&self) -> String
Get a detailed description.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TaskKind
impl<'de> Deserialize<'de> for TaskKind
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
impl Eq for TaskKind
impl StructuralPartialEq for TaskKind
Auto Trait Implementations§
impl Freeze for TaskKind
impl RefUnwindSafe for TaskKind
impl Send for TaskKind
impl Sync for TaskKind
impl Unpin for TaskKind
impl UnsafeUnpin for TaskKind
impl UnwindSafe for TaskKind
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.