Struct miden_objects::block::BlockAccountUpdate
source · pub struct BlockAccountUpdate { /* private fields */ }Expand description
Describes the changes made to an account state resulting from executing transactions contained in a block.
Implementations§
source§impl BlockAccountUpdate
impl BlockAccountUpdate
sourcepub const fn new(
account_id: AccountId,
new_state_hash: Digest,
details: AccountUpdateDetails
) -> Self
pub const fn new( account_id: AccountId, new_state_hash: Digest, details: AccountUpdateDetails ) -> Self
Returns a new BlockAccountUpdate 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 new_state_hash(&self) -> Digest
pub fn new_state_hash(&self) -> Digest
Returns the hash of the new account state.
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 private account.
Trait Implementations§
source§impl Clone for BlockAccountUpdate
impl Clone for BlockAccountUpdate
source§fn clone(&self) -> BlockAccountUpdate
fn clone(&self) -> BlockAccountUpdate
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 BlockAccountUpdate
impl Debug for BlockAccountUpdate
source§impl Deserializable for BlockAccountUpdate
impl Deserializable for BlockAccountUpdate
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 BlockAccountUpdate
impl PartialEq for BlockAccountUpdate
source§fn eq(&self, other: &BlockAccountUpdate) -> bool
fn eq(&self, other: &BlockAccountUpdate) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serializable for BlockAccountUpdate
impl Serializable for BlockAccountUpdate
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 BlockAccountUpdate
impl StructuralPartialEq for BlockAccountUpdate
Auto Trait Implementations§
impl Freeze for BlockAccountUpdate
impl RefUnwindSafe for BlockAccountUpdate
impl Send for BlockAccountUpdate
impl Sync for BlockAccountUpdate
impl Unpin for BlockAccountUpdate
impl UnwindSafe for BlockAccountUpdate
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