pub struct PreparedJobInsert { /* private fields */ }Expand description
Pre-computed values for a single job row, ready to bind into any driver.
External adapters should construct this with prepare_job_insert or
prepare_raw_job_insert, then bind values to
crate::adapter::postgres::INSERT_JOB_SQL in the getter order below.
Implementations§
Source§impl PreparedJobInsert
impl PreparedJobInsert
Sourcepub fn state_db_str(&self) -> &'static str
pub fn state_db_str(&self) -> &'static str
Initial job state as the canonical Postgres enum text value.
Sourcepub fn max_attempts(&self) -> i16
pub fn max_attempts(&self) -> i16
Maximum attempts.
Job tags.
Sourcepub fn unique_key(&self) -> Option<&[u8]>
pub fn unique_key(&self) -> Option<&[u8]>
Precomputed unique key bytes.
Sourcepub fn unique_states_bit_string(&self) -> Option<&str>
pub fn unique_states_bit_string(&self) -> Option<&str>
Precomputed unique-state bit mask as a Postgres bit(8) text value.
Sourcepub fn ordering_key(&self) -> Option<&[u8]>
pub fn ordering_key(&self) -> Option<&[u8]>
Optional ordering key used by sharded queue storage.
Trait Implementations§
Source§impl Clone for PreparedJobInsert
impl Clone for PreparedJobInsert
Source§fn clone(&self) -> PreparedJobInsert
fn clone(&self) -> PreparedJobInsert
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PreparedJobInsert
impl RefUnwindSafe for PreparedJobInsert
impl Send for PreparedJobInsert
impl Sync for PreparedJobInsert
impl Unpin for PreparedJobInsert
impl UnsafeUnpin for PreparedJobInsert
impl UnwindSafe for PreparedJobInsert
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