Struct sidekiq::Job[][src]

pub struct Job {
    pub class: String,
    pub args: Vec<Value>,
    pub retry: i64,
    pub queue: String,
    pub jid: String,
    pub created_at: u64,
    pub enqueued_at: u64,
}

Fields

class: Stringargs: Vec<Value>retry: i64queue: Stringjid: Stringcreated_at: u64enqueued_at: u64

Implementations

Examples

use std::default::Default;
use sidekiq::Value;
use sidekiq::{Job, JobOpts};

// Create a job
let class = "MyClass".to_string();
let job_opts = JobOpts {
    queue: "test".to_string(),
    ..Default::default()
};
let job = Job::new(class, vec![sidekiq::Value::Null], job_opts);

Trait Implementations

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.