pub struct JobSpec {
pub queue_name: Option<String>,
pub run_at: Option<DateTime<Utc>>,
pub max_attempts: Option<i16>,
pub job_key: Option<String>,
pub job_key_mode: Option<JobKeyMode>,
pub priority: Option<i16>,
pub flags: Option<Vec<String>>,
}Fields§
§queue_name: Option<String>§run_at: Option<DateTime<Utc>>§max_attempts: Option<i16>§job_key: Option<String>§job_key_mode: Option<JobKeyMode>§priority: Option<i16>§flags: Option<Vec<String>>Implementations§
Source§impl JobSpec
impl JobSpec
pub fn queue_name(&self) -> &Option<String>
pub fn run_at(&self) -> &Option<DateTime<Utc>>
pub fn max_attempts(&self) -> &Option<i16>
pub fn job_key(&self) -> &Option<String>
pub fn job_key_mode(&self) -> &Option<JobKeyMode>
pub fn priority(&self) -> &Option<i16>
pub fn flags(&self) -> &Option<Vec<String>>
Source§impl JobSpec
impl JobSpec
pub fn set_queue_name(&mut self, val: Option<String>) -> &mut JobSpec
pub fn set_run_at(&mut self, val: Option<DateTime<Utc>>) -> &mut JobSpec
pub fn set_max_attempts(&mut self, val: Option<i16>) -> &mut JobSpec
pub fn set_job_key(&mut self, val: Option<String>) -> &mut JobSpec
pub fn set_job_key_mode(&mut self, val: Option<JobKeyMode>) -> &mut JobSpec
pub fn set_priority(&mut self, val: Option<i16>) -> &mut JobSpec
pub fn set_flags(&mut self, val: Option<Vec<String>>) -> &mut JobSpec
Source§impl JobSpec
impl JobSpec
pub fn queue_name_mut(&mut self) -> &mut Option<String>
pub fn run_at_mut(&mut self) -> &mut Option<DateTime<Utc>>
pub fn max_attempts_mut(&mut self) -> &mut Option<i16>
pub fn job_key_mut(&mut self) -> &mut Option<String>
pub fn job_key_mode_mut(&mut self) -> &mut Option<JobKeyMode>
pub fn priority_mut(&mut self) -> &mut Option<i16>
pub fn flags_mut(&mut self) -> &mut Option<Vec<String>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JobSpec
impl RefUnwindSafe for JobSpec
impl Send for JobSpec
impl Sync for JobSpec
impl Unpin for JobSpec
impl UnsafeUnpin for JobSpec
impl UnwindSafe for JobSpec
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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