Struct starknet_api::state::StateUpdate
source · pub struct StateUpdate {
pub block_hash: BlockHash,
pub new_root: GlobalRoot,
pub old_root: GlobalRoot,
pub state_diff: StateDiff,
}Expand description
The differences between two states before and after a block with hash block_hash and their respective roots.
Fields§
§block_hash: BlockHash§new_root: GlobalRoot§old_root: GlobalRoot§state_diff: StateDiffTrait Implementations§
source§impl Clone for StateUpdate
impl Clone for StateUpdate
source§fn clone(&self) -> StateUpdate
fn clone(&self) -> StateUpdate
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 StateUpdate
impl Debug for StateUpdate
source§impl Default for StateUpdate
impl Default for StateUpdate
source§fn default() -> StateUpdate
fn default() -> StateUpdate
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for StateUpdate
impl<'de> Deserialize<'de> for StateUpdate
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for StateUpdate
impl PartialEq for StateUpdate
source§fn eq(&self, other: &StateUpdate) -> bool
fn eq(&self, other: &StateUpdate) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for StateUpdate
impl Serialize for StateUpdate
impl Eq for StateUpdate
impl StructuralPartialEq for StateUpdate
Auto Trait Implementations§
impl RefUnwindSafe for StateUpdate
impl Send for StateUpdate
impl Sync for StateUpdate
impl Unpin for StateUpdate
impl UnwindSafe for StateUpdate
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.