pub struct OperationRecord {Show 14 fields
pub id: Uuid,
pub kind: String,
pub status: OperationStatus,
pub progress: OperationProgress,
pub result: Option<Value>,
pub error: Option<String>,
pub owner_id: Option<Uuid>,
pub workspace_id: Option<Uuid>,
pub batch_id: Option<String>,
pub created_at: DateTime<Utc>,
pub started_at: Option<DateTime<Utc>>,
pub heartbeat_at: Option<DateTime<Utc>>,
pub finished_at: Option<DateTime<Utc>>,
pub updated_at: DateTime<Utc>,
/* private fields */
}Expand description
A stored operation: what Operations returns, GET /api/operations/{id} answers, the SSE stream sends and
operation.updated broadcasts.
Fields§
§id: UuidThe operation id.
kind: StringIts kind (export).
status: OperationStatusWhere it is.
progress: OperationProgressHow far it got.
result: Option<Value>What it produced (set by Operations::complete).
error: Option<String>Why it failed.
owner_id: Option<Uuid>The user who started it.
workspace_id: Option<Uuid>The workspace it belongs to.
batch_id: Option<String>The batch doing its work.
created_at: DateTime<Utc>When it was started.
started_at: Option<DateTime<Utc>>When its work began.
heartbeat_at: Option<DateTime<Utc>>When its work last showed signs of life.
finished_at: Option<DateTime<Utc>>When it finished.
updated_at: DateTime<Utc>When it last changed.
Implementations§
Trait Implementations§
Source§impl Clone for OperationRecord
impl Clone for OperationRecord
Source§impl Debug for OperationRecord
impl Debug for OperationRecord
Source§impl PartialEq for OperationRecord
impl PartialEq for OperationRecord
Source§impl Serialize for OperationRecord
impl Serialize for OperationRecord
impl StructuralPartialEq for OperationRecord
Source§impl ToSchema for OperationRecord
impl ToSchema for OperationRecord
Source§fn name() -> Cow<'static, str>
fn name() -> Cow<'static, str>
The name of the type’s component schema: the last segment of its Rust
path unless
#[schema(as = Name)] says otherwise, followed by the names
of its generic arguments (Page<Note> is Page_Note).Source§fn reference() -> Schema
fn reference() -> Schema
What a field or an element of this type says: a
$ref to the component,
or for a type with no component of its own (String, Vec<T>) its
schema.Source§fn components(out: &mut Vec<(String, Schema)>)
fn components(out: &mut Vec<(String, Schema)>)
Adds the component schemas
reference refers to:
this type’s and what it refers to. A type already in out isn’t walked
again, so a type that contains itself ends. Another type of the same name
is walked as well, even with the same schema, since what its $refs mean
may differ: a different schema of one name goes in beside the first, for
the document to refuse.Auto Trait Implementations§
impl Forget for OperationRecord
impl Freeze for OperationRecord
impl Move for OperationRecord
impl RefUnwindSafe for OperationRecord
impl Send for OperationRecord
impl Sync for OperationRecord
impl Unpin for OperationRecord
impl UnsafeUnpin for OperationRecord
impl UnwindSafe for OperationRecord
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ValueFor<Option<T>> for T
impl<T> ValueFor<Option<T>> for T
Source§fn into_value_for(self) -> Option<T>
fn into_value_for(self) -> Option<T>
The value as the column’s type.