pub struct JobBuilder { /* private fields */ }Expand description
Builder for Job.
Implementations§
Source§impl JobBuilder
impl JobBuilder
pub fn id(self, value: i64) -> JobBuilder
pub fn job_queue_id(self, value: i32) -> JobBuilder
pub fn payload(self, value: Value) -> JobBuilder
pub fn priority(self, value: i16) -> JobBuilder
pub fn run_at(self, value: DateTime<Utc>) -> JobBuilder
Sourcepub fn attempts(self, value: i16) -> JobBuilder
pub fn attempts(self, value: i16) -> JobBuilder
Attempts started, including the current execution (1 on its first run).
pub fn max_attempts(self, value: i16) -> JobBuilder
pub fn last_error(self, value: String) -> JobBuilder
pub fn created_at(self, value: DateTime<Utc>) -> JobBuilder
pub fn updated_at(self, value: DateTime<Utc>) -> JobBuilder
pub fn key(self, value: String) -> JobBuilder
pub fn revision(self, value: i32) -> JobBuilder
pub fn locked_at(self, value: DateTime<Utc>) -> JobBuilder
pub fn locked_by(self, value: String) -> JobBuilder
pub fn flags(self, value: Value) -> JobBuilder
pub fn task_id(self, value: i32) -> JobBuilder
pub fn task_identifier<VALUE>(self, value: VALUE) -> JobBuilder
Trait Implementations§
Source§impl Default for JobBuilder
impl Default for JobBuilder
Source§fn default() -> JobBuilder
fn default() -> JobBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for JobBuilder
impl RefUnwindSafe for JobBuilder
impl Send for JobBuilder
impl Sync for JobBuilder
impl Unpin for JobBuilder
impl UnsafeUnpin for JobBuilder
impl UnwindSafe for JobBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more