pub struct DbJobData {Show 16 fields
pub id: i64,
pub job_queue_id: Option<i32>,
pub payload: Value,
pub priority: i16,
pub run_at: DateTime<Utc>,
pub attempts: i16,
pub max_attempts: i16,
pub last_error: Option<String>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub key: Option<String>,
pub revision: i32,
pub locked_at: Option<DateTime<Utc>>,
pub locked_by: Option<String>,
pub flags: Option<Value>,
pub task_id: i32,
}Expand description
Named field carrier for constructing a DbJob.
This avoids positional construction at database boundaries where adjacent fields often have the same Rust type.
Fields§
§id: i64§job_queue_id: Option<i32>§payload: Value§priority: i16§run_at: DateTime<Utc>§attempts: i16§max_attempts: i16§last_error: Option<String>§created_at: DateTime<Utc>§updated_at: DateTime<Utc>§key: Option<String>§revision: i32§locked_at: Option<DateTime<Utc>>§locked_by: Option<String>§flags: Option<Value>§task_id: i32Trait Implementations§
impl Eq for DbJobData
impl StructuralPartialEq for DbJobData
Auto Trait Implementations§
impl Freeze for DbJobData
impl RefUnwindSafe for DbJobData
impl Send for DbJobData
impl Sync for DbJobData
impl Unpin for DbJobData
impl UnsafeUnpin for DbJobData
impl UnwindSafe for DbJobData
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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