pub struct StateProof {
pub address: [u8; 32],
pub resource_type: String,
pub exists: bool,
pub data: Option<Vec<u8>>,
pub state_proof: Vec<u8>,
pub version: u64,
}Expand description
State proof for verifying resource existence or non-existence.
Fields§
§address: [u8; 32]The account address
resource_type: StringThe resource type tag
exists: boolWhether the resource exists at this path
data: Option<Vec<u8>>Resource data if it exists
state_proof: Vec<u8>Merkle proof against state root
version: u64State version this proof is for
Implementations§
Trait Implementations§
Source§impl Clone for StateProof
impl Clone for StateProof
Source§fn clone(&self) -> StateProof
fn clone(&self) -> StateProof
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 StateProof
impl Debug for StateProof
Source§impl<'de> Deserialize<'de> for StateProof
impl<'de> Deserialize<'de> for StateProof
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 StateProof
impl PartialEq for StateProof
Source§impl Serialize for StateProof
impl Serialize for StateProof
impl Eq for StateProof
impl StructuralPartialEq for StateProof
Auto Trait Implementations§
impl Freeze for StateProof
impl RefUnwindSafe for StateProof
impl Send for StateProof
impl Sync for StateProof
impl Unpin for StateProof
impl UnsafeUnpin for StateProof
impl UnwindSafe for StateProof
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,
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.