Task

Derive Macro Task 

Source
#[derive(Task)]
{
    // Attributes available to this derive:
    #[task]
}
Expand description

Derive macro that automatically implements TaskHandler

Usage:

#[derive(Task)]
#[task(description = "Analyzing telemetry data", retry = true)]
pub struct TelemetryAnalysis {
    pub session_id: String,
    pub file_path: String,
}

impl TelemetryAnalysis {
    async fn execute(&self) -> TaskResult {
        // Your implementation here
    }
}