register_task

Attribute Macro register_task 

Source
#[register_task]
Available on crate feature auto-register only.
Expand description

Attribute macro for registering tasks with a custom name.

This is useful when you want to register a task with a specific name rather than using the name returned by the name() method.

ยงExample

#[register_task("custom_task_name")]
#[derive(Debug, Serialize, Deserialize)]
struct MyTask {
    data: String,
}