#[non_exhaustive]pub struct IndexProof {
pub block_proof: BlockProof,
pub index_proof: MapProof<String, Hash>,
}
Expand description
Proof of authenticity for a single index within the database.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.block_proof: BlockProof
Proof of authenticity for the block header.
index_proof: MapProof<String, Hash>
Proof of authenticity for the index. Must contain a single key - a full index name
in the form $service_name.$name_within_service
, e.g., cryptocurrency.wallets
.
The root hash of the proof must be equal to the state_hash
mentioned in block_proof
.
Implementations§
Source§impl IndexProof
impl IndexProof
Trait Implementations§
Source§impl Clone for IndexProof
impl Clone for IndexProof
Source§fn clone(&self) -> IndexProof
fn clone(&self) -> IndexProof
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 IndexProof
impl Debug for IndexProof
Source§impl<'de> Deserialize<'de> for IndexProof
impl<'de> Deserialize<'de> for IndexProof
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 ProtobufConvert for IndexProof
impl ProtobufConvert for IndexProof
Source§type ProtoStruct = IndexProof
type ProtoStruct = IndexProof
Type generated from the Protobuf definition.
Source§fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
Performs conversion from the type generated from Protobuf.
Source§fn to_pb(&self) -> Self::ProtoStruct
fn to_pb(&self) -> Self::ProtoStruct
Performs conversion to the type generated from Protobuf.
Auto Trait Implementations§
impl Freeze for IndexProof
impl RefUnwindSafe for IndexProof
impl Send for IndexProof
impl Sync for IndexProof
impl Unpin for IndexProof
impl UnwindSafe for IndexProof
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