pub struct StorageResult {
pub key: StorageKey,
pub value: B256,
}Expand description
Represents the result of a storage slot query.
Fields§
§key: StorageKeyThe storage key
value: B256The value stored at the slot
Trait Implementations§
Source§impl Clone for StorageResult
impl Clone for StorageResult
Source§fn clone(&self) -> StorageResult
fn clone(&self) -> StorageResult
Returns a duplicate 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 StorageResult
impl Debug for StorageResult
Source§impl Default for StorageResult
impl Default for StorageResult
Source§fn default() -> StorageResult
fn default() -> StorageResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StorageResult
impl<'de> Deserialize<'de> for StorageResult
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<(FixedBytes<32>, FixedBytes<32>)> for StorageResult
impl From<(FixedBytes<32>, FixedBytes<32>)> for StorageResult
Source§fn from((key, value): (StorageKey, B256)) -> Self
fn from((key, value): (StorageKey, B256)) -> Self
Converts to this type from the input type.
Source§impl From<StorageResult> for (StorageKey, B256)
impl From<StorageResult> for (StorageKey, B256)
Source§fn from(result: StorageResult) -> Self
fn from(result: StorageResult) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StorageResult
impl PartialEq for StorageResult
Source§impl Serialize for StorageResult
impl Serialize for StorageResult
impl Eq for StorageResult
impl StructuralPartialEq for StorageResult
Auto Trait Implementations§
impl Freeze for StorageResult
impl RefUnwindSafe for StorageResult
impl Send for StorageResult
impl Sync for StorageResult
impl Unpin for StorageResult
impl UnwindSafe for StorageResult
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 64 bytes