Enum miden_objects::accounts::delta::AccountUpdateDetails
source · pub enum AccountUpdateDetails {
Private,
New(Account),
Delta(AccountDelta),
}Variants§
Private
Account is private (no on-chain state change).
New(Account)
The whole state is needed for new accounts.
Delta(AccountDelta)
For existing accounts, only the delta is needed.
Implementations§
source§impl AccountUpdateDetails
impl AccountUpdateDetails
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 AccountUpdateDetails
impl Clone for AccountUpdateDetails
source§fn clone(&self) -> AccountUpdateDetails
fn clone(&self) -> AccountUpdateDetails
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 AccountUpdateDetails
impl Debug for AccountUpdateDetails
source§impl Deserializable for AccountUpdateDetails
impl Deserializable for AccountUpdateDetails
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 AccountUpdateDetails
impl PartialEq for AccountUpdateDetails
source§fn eq(&self, other: &AccountUpdateDetails) -> bool
fn eq(&self, other: &AccountUpdateDetails) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serializable for AccountUpdateDetails
impl Serializable for AccountUpdateDetails
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 AccountUpdateDetails
impl StructuralPartialEq for AccountUpdateDetails
Auto Trait Implementations§
impl Freeze for AccountUpdateDetails
impl RefUnwindSafe for AccountUpdateDetails
impl Send for AccountUpdateDetails
impl Sync for AccountUpdateDetails
impl Unpin for AccountUpdateDetails
impl UnwindSafe for AccountUpdateDetails
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