pub struct LiveMutationStepRow {
pub id: i64,
pub owner_id: i64,
pub run_id: Option<i64>,
pub step: String,
pub target_json: String,
pub previous_json: Option<String>,
pub status: MutationStepStatus,
pub started_at: DateTime<Utc>,
pub completed_at: Option<DateTime<Utc>>,
pub readback_json: Option<String>,
pub detail: Option<String>,
}Fields§
§id: i64§owner_id: i64§run_id: Option<i64>§step: String§target_json: String§previous_json: Option<String>§status: MutationStepStatus§started_at: DateTime<Utc>§completed_at: Option<DateTime<Utc>>§readback_json: Option<String>§detail: Option<String>Implementations§
Source§impl LiveMutationStepRow
impl LiveMutationStepRow
pub async fn begin( pool: &SqlitePool, new: NewLiveMutationStep, ) -> DbResult<Self>
pub async fn finish( pool: &SqlitePool, step_id: i64, status: MutationStepStatus, now: DateTime<Utc>, readback_json: Option<&str>, detail: Option<&str>, ) -> DbResult<Self>
pub async fn not_needed( pool: &SqlitePool, owner_id: i64, run_id: i64, step: &str, now: DateTime<Utc>, detail: &str, ) -> DbResult<Self>
pub async fn list_for_owner( pool: &SqlitePool, owner_id: i64, ) -> DbResult<Vec<Self>>
pub async fn list_for_run(pool: &SqlitePool, run_id: i64) -> DbResult<Vec<Self>>
Trait Implementations§
Source§impl Clone for LiveMutationStepRow
impl Clone for LiveMutationStepRow
Source§fn clone(&self) -> LiveMutationStepRow
fn clone(&self) -> LiveMutationStepRow
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 LiveMutationStepRow
impl Debug for LiveMutationStepRow
Source§impl PartialEq for LiveMutationStepRow
impl PartialEq for LiveMutationStepRow
Source§impl Serialize for LiveMutationStepRow
impl Serialize for LiveMutationStepRow
impl StructuralPartialEq for LiveMutationStepRow
Auto Trait Implementations§
impl Freeze for LiveMutationStepRow
impl RefUnwindSafe for LiveMutationStepRow
impl Send for LiveMutationStepRow
impl Sync for LiveMutationStepRow
impl Unpin for LiveMutationStepRow
impl UnsafeUnpin for LiveMutationStepRow
impl UnwindSafe for LiveMutationStepRow
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,
§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