Struct lambda_starknet_api::state::ThinStateDiff
source · pub struct ThinStateDiff {
pub deployed_contracts: IndexMap<ContractAddress, ClassHash>,
pub storage_diffs: IndexMap<ContractAddress, IndexMap<StorageKey, StarkFelt>>,
pub declared_classes: IndexMap<ClassHash, CompiledClassHash>,
pub deprecated_declared_classes: Vec<ClassHash>,
pub nonces: IndexMap<ContractAddress, Nonce>,
pub replaced_classes: IndexMap<ContractAddress, ClassHash>,
}
Fields§
§deployed_contracts: IndexMap<ContractAddress, ClassHash>
§storage_diffs: IndexMap<ContractAddress, IndexMap<StorageKey, StarkFelt>>
§declared_classes: IndexMap<ClassHash, CompiledClassHash>
§deprecated_declared_classes: Vec<ClassHash>
§nonces: IndexMap<ContractAddress, Nonce>
§replaced_classes: IndexMap<ContractAddress, ClassHash>
Implementations§
source§impl ThinStateDiff
impl ThinStateDiff
pub fn from_state_diff( diff: StateDiff ) -> (Self, DeclaredClasses, DeprecatedDeclaredClasses)
Trait Implementations§
source§impl Clone for ThinStateDiff
impl Clone for ThinStateDiff
source§fn clone(&self) -> ThinStateDiff
fn clone(&self) -> ThinStateDiff
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 ThinStateDiff
impl Debug for ThinStateDiff
source§impl<'de> Deserialize<'de> for ThinStateDiff
impl<'de> Deserialize<'de> for ThinStateDiff
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 From<StateDiff> for ThinStateDiff
impl From<StateDiff> for ThinStateDiff
source§impl PartialEq<ThinStateDiff> for ThinStateDiff
impl PartialEq<ThinStateDiff> for ThinStateDiff
source§fn eq(&self, other: &ThinStateDiff) -> bool
fn eq(&self, other: &ThinStateDiff) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ThinStateDiff
impl Serialize for ThinStateDiff
impl Eq for ThinStateDiff
impl StructuralEq for ThinStateDiff
impl StructuralPartialEq for ThinStateDiff
Auto Trait Implementations§
impl RefUnwindSafe for ThinStateDiff
impl Send for ThinStateDiff
impl Sync for ThinStateDiff
impl Unpin for ThinStateDiff
impl UnwindSafe for ThinStateDiff
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.