pub struct StateChange {
pub kind: StateChangeKind,
pub key: LedgerKey,
pub before: Option<LedgerEntry>,
pub after: Option<LedgerEntry>,
}
Expand description
On successful simulation of InvokeHostFunction operations, this field will be an array of LedgerEntrys before and after simulation occurred. Note that at least one of before or after will be present: before and no after indicates a deletion event, the inverse is a creation event, and both present indicates an update event. Or just check the type.
Fields§
§kind: StateChangeKind
Type of change
key: LedgerKey
The LedgerKey for this delta
before: Option<LedgerEntry>
If present, LedgerEntry state prior to simulation
after: Option<LedgerEntry>
If present, LedgerEntry state after simulation
Auto Trait Implementations§
impl Freeze for StateChange
impl RefUnwindSafe for StateChange
impl Send for StateChange
impl Sync for StateChange
impl Unpin for StateChange
impl UnwindSafe for StateChange
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