Struct sov_state::storage::StorageProof
source · pub struct StorageProof<P> {
pub key: StorageKey,
pub value: Option<StorageValue>,
pub proof: P,
}Expand description
A proof that a particular storage key has a particular value, or is absent.
Fields§
§key: StorageKeyThe key which is proven
value: Option<StorageValue>The value, if any, which is proven
proof: PThe cryptographic proof
Trait Implementations§
source§impl<P> BorshDeserialize for StorageProof<P>where
StorageKey: BorshDeserialize,
Option<StorageValue>: BorshDeserialize,
P: BorshDeserialize,
impl<P> BorshDeserialize for StorageProof<P>where StorageKey: BorshDeserialize, Option<StorageValue>: BorshDeserialize, P: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where R: Read,
source§impl<P> BorshSerialize for StorageProof<P>where
StorageKey: BorshSerialize,
Option<StorageValue>: BorshSerialize,
P: BorshSerialize,
impl<P> BorshSerialize for StorageProof<P>where StorageKey: BorshSerialize, Option<StorageValue>: BorshSerialize, P: BorshSerialize,
source§impl<P: Clone> Clone for StorageProof<P>
impl<P: Clone> Clone for StorageProof<P>
source§fn clone(&self) -> StorageProof<P>
fn clone(&self) -> StorageProof<P>
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<P: Debug> Debug for StorageProof<P>
impl<P: Debug> Debug for StorageProof<P>
source§impl<'de, P> Deserialize<'de> for StorageProof<P>where
P: Deserialize<'de>,
impl<'de, P> Deserialize<'de> for StorageProof<P>where P: Deserialize<'de>,
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
Auto Trait Implementations§
impl<P> RefUnwindSafe for StorageProof<P>where P: RefUnwindSafe,
impl<P> Send for StorageProof<P>where P: Send,
impl<P> Sync for StorageProof<P>where P: Sync,
impl<P> Unpin for StorageProof<P>where P: Unpin,
impl<P> UnwindSafe for StorageProof<P>where P: UnwindSafe,
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