pub struct StateProof {
pub object_id: [u8; 32],
pub version: u64,
pub merkle_proof: Vec<u8>,
pub state_root: [u8; 32],
}Expand description
State proof for object existence/ownership verification.
Fields§
§object_id: [u8; 32]The object ID being proven
version: u64Object version
merkle_proof: Vec<u8>Merkle proof of object existence in state
state_root: [u8; 32]State root hash at the time of proof
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
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