[][src]Struct sidekiq::Job

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

impl Job[src]

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);

pub fn new(class: String, args: Vec<Value>, opts: JobOpts) -> Job[src]

Trait Implementations

impl Serialize for Job[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,