Skip to main content

JobOptions

Struct JobOptions 

Source
pub struct JobOptions {
Show 30 fields pub priority: Option<i64>, pub delay: Option<i64>, pub attempts: Option<i64>, pub backoff: Option<Backoff>, pub ttl: Option<i64>, pub timeout: Option<i64>, pub job_id: Option<String>, pub unique_key: Option<String>, pub deduplication: Option<Deduplication>, pub depends_on: Vec<String>, pub parent_id: Option<String>, pub children_ids: Vec<String>, pub tags: Vec<String>, pub group_id: Option<String>, pub lifo: Option<bool>, pub remove_on_complete: Option<bool>, pub remove_on_fail: Option<bool>, pub stall_timeout: Option<i64>, pub durable: Option<bool>, pub repeat: Option<Value>, pub debounce_id: Option<String>, pub debounce_ttl: Option<i64>, pub stack_trace_limit: Option<i64>, pub keep_logs: Option<i64>, pub size_limit: Option<i64>, pub timestamp: Option<i64>, pub fail_parent_on_failure: Option<bool>, pub remove_dependency_on_failure: Option<bool>, pub ignore_dependency_on_failure: Option<bool>, pub continue_parent_on_failure: Option<bool>,
}
Expand description

Per-job options. Static fields make silently ignored options impossible.

Fields§

§priority: Option<i64>§delay: Option<i64>§attempts: Option<i64>§backoff: Option<Backoff>§ttl: Option<i64>§timeout: Option<i64>§job_id: Option<String>§unique_key: Option<String>§deduplication: Option<Deduplication>§depends_on: Vec<String>§parent_id: Option<String>§children_ids: Vec<String>§tags: Vec<String>§group_id: Option<String>§lifo: Option<bool>§remove_on_complete: Option<bool>§remove_on_fail: Option<bool>§stall_timeout: Option<i64>§durable: Option<bool>§repeat: Option<Value>§debounce_id: Option<String>§debounce_ttl: Option<i64>§stack_trace_limit: Option<i64>§keep_logs: Option<i64>§size_limit: Option<i64>§timestamp: Option<i64>§fail_parent_on_failure: Option<bool>§remove_dependency_on_failure: Option<bool>§ignore_dependency_on_failure: Option<bool>§continue_parent_on_failure: Option<bool>

Trait Implementations§

Source§

impl Clone for JobOptions

Source§

fn clone(&self) -> JobOptions

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for JobOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for JobOptions

Source§

fn default() -> JobOptions

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.