Worker

Derive Macro Worker 

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

Generates impl for oxanus::Worker.

Example usage:

#[derive(Serialize, oxanus::Worker)]
#[oxanus(max_retries = 3, on_conflict = Replace)]
#[oxanus(unique_id = "test_worker_{id}")]
struct TestWorkerUniqueId {
    id: i32,
}