pub struct FailedJobRow {
pub id: String,
pub queue: String,
pub name: String,
pub payload: String,
pub error: String,
pub failed_at: DateTime<Utc>,
}Expand description
A job that exhausted its attempts, as a row.
Fields§
§id: StringThe failed job’s id — the same id it had while queued.
queue: StringWhich queue it was on.
name: StringThe job’s registered name.
payload: StringIts serialised body.
error: StringThe last error’s message.
failed_at: DateTime<Utc>When it gave up.
Trait Implementations§
Source§impl Clone for FailedJobRow
impl Clone for FailedJobRow
Source§fn clone(&self) -> FailedJobRow
fn clone(&self) -> FailedJobRow
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 moreSource§impl Debug for FailedJobRow
impl Debug for FailedJobRow
Source§impl Entity for FailedJobRow
impl Entity for FailedJobRow
Source§fn columns() -> &'static [ColumnSpec]
fn columns() -> &'static [ColumnSpec]
Column metadata, in declaration order. Drives both DDL generation and
the column list of generated
INSERTs.Source§fn primary_key() -> &'static str
fn primary_key() -> &'static str
The primary-key column name. Used by
find_by_pk / update /
delete_by_pk.Source§fn indexes() -> &'static [IndexSpec]
fn indexes() -> &'static [IndexSpec]
Secondary indexes (single-column and composite, unique or not),
emitted as separate
CREATE INDEX statements by crate::schema.
Defaults to none.Source§fn foreign_keys() -> &'static [ForeignKeySpec]
fn foreign_keys() -> &'static [ForeignKeySpec]
Foreign-key constraints, emitted inline in the
CREATE TABLE. These
enforce referential integrity within one database; they are not ORM
relationships (no navigation is generated). Defaults to none.Source§fn shard_columns() -> &'static [&'static str]
fn shard_columns() -> &'static [&'static str]
Columns whose values are the shard key — a shard-encoded id
(
#[orm(shard_key)]), the “user id by proxy”. When a query constrains
one of these, the repo layer routes the operation to that id’s shard. Read moreSource§fn from_row(row: &dyn Row) -> Result<Self, Error>
fn from_row(row: &dyn Row) -> Result<Self, Error>
Decode one row into
Self. Generated to read each field through its
FromColumn impl.Source§fn insert_values(&self) -> Vec<(&'static str, Value)>
fn insert_values(&self) -> Vec<(&'static str, Value)>
(column, value) pairs for an INSERT. Auto-increment primary keys
are omitted so the database assigns them.Source§impl Model for FailedJobRow
impl Model for FailedJobRow
Source§fn model_name() -> &'static str
fn model_name() -> &'static str
The model’s name, for error messages —
"Post".Source§fn route_key_name() -> &'static str
fn route_key_name() -> &'static str
The column route-model binding looks a member up by. Read more
Source§impl PartialEq for FailedJobRow
impl PartialEq for FailedJobRow
impl StructuralPartialEq for FailedJobRow
Auto Trait Implementations§
impl Freeze for FailedJobRow
impl RefUnwindSafe for FailedJobRow
impl Send for FailedJobRow
impl Sync for FailedJobRow
impl Unpin for FailedJobRow
impl UnsafeUnpin for FailedJobRow
impl UnwindSafe for FailedJobRow
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> Event for T
impl<T> Event for T
Source§fn event_name() -> &'static strwhere
Self: Sized,
fn event_name() -> &'static strwhere
Self: Sized,
A human-readable name, used by wildcard listeners and log output.
Always the Rust type path; see the trait docs.