pub struct ProximityStructuralProof {
pub descriptor: Cid,
pub objects: Vec<TypedContentObject>,
}Expand description
Complete typed PRXI closure sufficient for store-independent verification.
Fields§
§descriptor: Cid§objects: Vec<TypedContentObject>Implementations§
Source§impl ProximityStructuralProof
impl ProximityStructuralProof
Sourcepub fn verify_for(
&self,
expected_descriptor: &Cid,
limits: &ContentGraphLimits,
) -> Result<ProximityStructuralVerification, Error>
pub fn verify_for( &self, expected_descriptor: &Cid, limits: &ContentGraphLimits, ) -> Result<ProximityStructuralVerification, Error>
Verify against a descriptor CID already trusted by the caller.
Sourcepub fn verify(
&self,
limits: &ContentGraphLimits,
) -> Result<ProximityStructuralVerification, Error>
pub fn verify( &self, limits: &ContentGraphLimits, ) -> Result<ProximityStructuralVerification, Error>
Rebuild an isolated content store, check exact closure, then run every proximity routing, radius, summary, vector, and directory invariant.
Trait Implementations§
Source§impl Clone for ProximityStructuralProof
impl Clone for ProximityStructuralProof
Source§fn clone(&self) -> ProximityStructuralProof
fn clone(&self) -> ProximityStructuralProof
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 ProximityStructuralProof
impl Debug for ProximityStructuralProof
impl Eq for ProximityStructuralProof
Source§impl PartialEq for ProximityStructuralProof
impl PartialEq for ProximityStructuralProof
impl StructuralPartialEq for ProximityStructuralProof
Auto Trait Implementations§
impl Freeze for ProximityStructuralProof
impl RefUnwindSafe for ProximityStructuralProof
impl Send for ProximityStructuralProof
impl Sync for ProximityStructuralProof
impl Unpin for ProximityStructuralProof
impl UnsafeUnpin for ProximityStructuralProof
impl UnwindSafe for ProximityStructuralProof
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