JobMetadata

Trait JobMetadata 

Source
pub trait JobMetadata: Serialize + DeserializeOwned {
    // Required methods
    fn queue() -> &'static str;
    fn name() -> &'static str;

    // Provided method
    fn max_retries() -> usize { ... }
}

Required Methods§

Source

fn queue() -> &'static str

Source

fn name() -> &'static str

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§