Struct miden_objects::transaction::TxAccountUpdate
source · pub struct TxAccountUpdate { /* private fields */ }Expand description
Describes the changes made to the account state resulting from a transaction execution.
Implementations§
source§impl TxAccountUpdate
impl TxAccountUpdate
sourcepub const fn new(
account_id: AccountId,
init_state_hash: Digest,
final_state_hash: Digest,
details: AccountUpdateDetails
) -> Self
pub const fn new( account_id: AccountId, init_state_hash: Digest, final_state_hash: Digest, details: AccountUpdateDetails ) -> Self
Returns a new TxAccountUpdate instantiated from the specified components.
sourcepub fn account_id(&self) -> AccountId
pub fn account_id(&self) -> AccountId
Returns the ID of the updated account.
sourcepub fn init_state_hash(&self) -> Digest
pub fn init_state_hash(&self) -> Digest
Returns the hash of the account’s initial state.
sourcepub fn final_state_hash(&self) -> Digest
pub fn final_state_hash(&self) -> Digest
Returns the hash of the account’s after a transaction was executed.
sourcepub fn details(&self) -> &AccountUpdateDetails
pub fn details(&self) -> &AccountUpdateDetails
Returns the description of the updates for public accounts.
These descriptions can be used to build the new account state from the previous account state.
sourcepub fn is_private(&self) -> bool
pub fn is_private(&self) -> bool
Returns true if the account update details are for a private account.
Trait Implementations§
source§impl Clone for TxAccountUpdate
impl Clone for TxAccountUpdate
source§fn clone(&self) -> TxAccountUpdate
fn clone(&self) -> TxAccountUpdate
Returns a copy 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 moresource§impl Debug for TxAccountUpdate
impl Debug for TxAccountUpdate
source§impl Deserializable for TxAccountUpdate
impl Deserializable for TxAccountUpdate
source§fn read_from<R: ByteReader>(
source: &mut R
) -> Result<Self, DeserializationError>
fn read_from<R: ByteReader>( source: &mut R ) -> Result<Self, DeserializationError>
Reads a sequence of bytes from the provided
source, attempts to deserialize these bytes
into Self, and returns the result. Read moresource§fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
source§impl PartialEq for TxAccountUpdate
impl PartialEq for TxAccountUpdate
source§fn eq(&self, other: &TxAccountUpdate) -> bool
fn eq(&self, other: &TxAccountUpdate) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serializable for TxAccountUpdate
impl Serializable for TxAccountUpdate
source§fn write_into<W: ByteWriter>(&self, target: &mut W)
fn write_into<W: ByteWriter>(&self, target: &mut W)
Serializes
self into bytes and writes these bytes into the target.source§fn get_size_hint(&self) -> usize
fn get_size_hint(&self) -> usize
Returns an estimate of how many bytes are needed to represent self. Read more
impl Eq for TxAccountUpdate
impl StructuralPartialEq for TxAccountUpdate
Auto Trait Implementations§
impl Freeze for TxAccountUpdate
impl RefUnwindSafe for TxAccountUpdate
impl Send for TxAccountUpdate
impl Sync for TxAccountUpdate
impl Unpin for TxAccountUpdate
impl UnwindSafe for TxAccountUpdate
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