pub struct TransactionResult {
pub committed: bool,
pub snapshot: DataSnapshot,
}Expand description
Result returned by run_transaction, mirroring the JS SDK contract.
Fields§
§committed: boolIndicates whether the transaction committed (i.e. the update function
returned Some and the write succeeded).
snapshot: DataSnapshotSnapshot reflecting the data at the location after the transaction.
Trait Implementations§
Source§impl Clone for TransactionResult
impl Clone for TransactionResult
Source§fn clone(&self) -> TransactionResult
fn clone(&self) -> TransactionResult
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for TransactionResult
impl !RefUnwindSafe for TransactionResult
impl Send for TransactionResult
impl Sync for TransactionResult
impl Unpin for TransactionResult
impl !UnwindSafe for TransactionResult
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