Trait agent_tk::delegation::Task
source · pub trait Task: Sized {
// Required methods
fn from_description(
task_type: &String,
description: &String,
) -> Result<Self>;
fn task_type(&self) -> &str;
fn to_description(&self) -> String;
fn task_id(&self) -> Uuid;
}Expand description
Base trait for representing tasks in the delegation
Required Methods§
sourcefn from_description(task_type: &String, description: &String) -> Result<Self>
fn from_description(task_type: &String, description: &String) -> Result<Self>
Create a task from a text description (aka json string…)
sourcefn to_description(&self) -> String
fn to_description(&self) -> String
Convert into a string representation
Object Safety§
This trait is not object safe.