pub struct AsyncJob {Show 22 fields
pub id: String,
pub tenant: TenantId,
pub project: ProjectId,
pub kind: String,
pub status: AsyncJobStatus,
pub request: String,
pub parameters: Json<Value>,
pub claims: Json<UserTokenClaims>,
pub submitted_by: String,
pub progress: Option<String>,
pub output: Option<Json<Value>>,
pub output_content_type: Option<String>,
pub error: Option<Json<Value>>,
pub attempts: i32,
pub max_attempts: i32,
pub locked_by: Option<String>,
pub lease_expires_at: Option<OffsetDateTime>,
pub created_at: OffsetDateTime,
pub updated_at: OffsetDateTime,
pub started_at: Option<OffsetDateTime>,
pub finished_at: Option<OffsetDateTime>,
pub expires_at: OffsetDateTime,
}Expand description
A job as stored.
Fields§
§id: String§tenant: TenantId§project: ProjectId§kind: String§status: AsyncJobStatus§request: String§parameters: Json<Value>§claims: Json<UserTokenClaims>The submitter’s verified token claims; the worker runs the job as them.
submitted_by: String§progress: Option<String>§output: Option<Json<Value>>§output_content_type: Option<String>§error: Option<Json<Value>>An OperationOutcome, once failed.
attempts: i32§max_attempts: i32§locked_by: Option<String>§lease_expires_at: Option<OffsetDateTime>§created_at: OffsetDateTime§updated_at: OffsetDateTime§started_at: Option<OffsetDateTime>§finished_at: Option<OffsetDateTime>§expires_at: OffsetDateTimeTrait Implementations§
Source§impl<'a, R: Row> FromRow<'a, R> for AsyncJobwhere
&'a str: ColumnIndex<R>,
String: Decode<'a, R::Database> + Type<R::Database>,
TenantId: Decode<'a, R::Database> + Type<R::Database>,
ProjectId: Decode<'a, R::Database> + Type<R::Database>,
AsyncJobStatus: Decode<'a, R::Database> + Type<R::Database>,
Json<Value>: Decode<'a, R::Database> + Type<R::Database>,
Json<UserTokenClaims>: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
Option<Json<Value>>: Decode<'a, R::Database> + Type<R::Database>,
i32: Decode<'a, R::Database> + Type<R::Database>,
Option<OffsetDateTime>: Decode<'a, R::Database> + Type<R::Database>,
OffsetDateTime: Decode<'a, R::Database> + Type<R::Database>,
impl<'a, R: Row> FromRow<'a, R> for AsyncJobwhere
&'a str: ColumnIndex<R>,
String: Decode<'a, R::Database> + Type<R::Database>,
TenantId: Decode<'a, R::Database> + Type<R::Database>,
ProjectId: Decode<'a, R::Database> + Type<R::Database>,
AsyncJobStatus: Decode<'a, R::Database> + Type<R::Database>,
Json<Value>: Decode<'a, R::Database> + Type<R::Database>,
Json<UserTokenClaims>: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
Option<Json<Value>>: Decode<'a, R::Database> + Type<R::Database>,
i32: Decode<'a, R::Database> + Type<R::Database>,
Option<OffsetDateTime>: Decode<'a, R::Database> + Type<R::Database>,
OffsetDateTime: Decode<'a, R::Database> + Type<R::Database>,
Auto Trait Implementations§
impl Freeze for AsyncJob
impl RefUnwindSafe for AsyncJob
impl Send for AsyncJob
impl Sync for AsyncJob
impl Unpin for AsyncJob
impl UnsafeUnpin for AsyncJob
impl UnwindSafe for AsyncJob
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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