pub struct KeyProofVerification {
pub valid: bool,
pub root: Option<Cid>,
pub key: Vec<u8>,
pub value: Option<Vec<u8>>,
}Expand description
Store-independent verification result for a KeyProof.
Fields§
§valid: boolWhether the proof path is internally consistent for root and key.
root: Option<Cid>Root CID from the proof.
key: Vec<u8>Key from the proof.
value: Option<Vec<u8>>Verified value when the key is present. None means verified absence
when valid is true.
Implementations§
Trait Implementations§
Source§impl Clone for KeyProofVerification
impl Clone for KeyProofVerification
Source§fn clone(&self) -> KeyProofVerification
fn clone(&self) -> KeyProofVerification
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 KeyProofVerification
impl Debug for KeyProofVerification
impl Eq for KeyProofVerification
Source§impl PartialEq for KeyProofVerification
impl PartialEq for KeyProofVerification
impl StructuralPartialEq for KeyProofVerification
Auto Trait Implementations§
impl Freeze for KeyProofVerification
impl RefUnwindSafe for KeyProofVerification
impl Send for KeyProofVerification
impl Sync for KeyProofVerification
impl Unpin for KeyProofVerification
impl UnsafeUnpin for KeyProofVerification
impl UnwindSafe for KeyProofVerification
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more