pub struct RunInTxOutcome<T> {
pub value: T,
pub audit_events: Vec<AuditEvent>,
}Expand description
See the module doc comment.
Fields§
§value: TExactly what the equivalent .run(..) call would have
returned.
audit_events: Vec<AuditEvent>AuditEvents already persisted to cratestack_audit by this
call, in mutation order. Empty when the model isn’t
@@audit-enabled, or (for .upsert(..).do_nothing()) when the
conflict target already existed and nothing was written.
Single-row writes build at most one; update_many /
delete_many build one per matched row.
Trait Implementations§
Source§impl<T: Clone> Clone for RunInTxOutcome<T>
impl<T: Clone> Clone for RunInTxOutcome<T>
Source§fn clone(&self) -> RunInTxOutcome<T>
fn clone(&self) -> RunInTxOutcome<T>
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 moreAuto Trait Implementations§
impl<T> Freeze for RunInTxOutcome<T>where
T: Freeze,
impl<T> RefUnwindSafe for RunInTxOutcome<T>where
T: RefUnwindSafe,
impl<T> Send for RunInTxOutcome<T>where
T: Send,
impl<T> Sync for RunInTxOutcome<T>where
T: Sync,
impl<T> Unpin for RunInTxOutcome<T>where
T: Unpin,
impl<T> UnsafeUnpin for RunInTxOutcome<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for RunInTxOutcome<T>where
T: UnwindSafe,
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 more