pub struct Staged {
pub result: Result<TransferResult, LedgerError>,
pub deltas: Vec<Delta>,
}Expand description
The output of stage: the business result plus the deltas to apply. On an
error result deltas is usually empty, but not always — an on-touch expiry
(plan §2b.4) both fails the second phase and releases the hold, so a failed
post can carry the expiry delta.
Fields§
§result: Result<TransferResult, LedgerError>The result recorded under the op’s idempotency id.
deltas: Vec<Delta>State mutations to commit atomically with the journal entry.
Trait Implementations§
impl Eq for Staged
impl StructuralPartialEq for Staged
Auto Trait Implementations§
impl Freeze for Staged
impl RefUnwindSafe for Staged
impl Send for Staged
impl Sync for Staged
impl Unpin for Staged
impl UnsafeUnpin for Staged
impl UnwindSafe for Staged
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