pub struct Provenance<'a> { /* private fields */ }Expand description
Provenance attestations. Get one with Client::provenance.
Implementations§
Source§impl<'a> Provenance<'a>
impl<'a> Provenance<'a>
Sourcepub async fn check(
&self,
req: &ProvenanceCheckRequest,
) -> Result<ProvenanceCheck, Error>
pub async fn check( &self, req: &ProvenanceCheckRequest, ) -> Result<ProvenanceCheck, Error>
Checks an IP against a claimed jurisdiction and writes an attestation.
Sourcepub async fn verify(&self) -> Result<ChainVerification, Error>
pub async fn verify(&self) -> Result<ChainVerification, Error>
Recomputes your attestation chain.
Sourcepub async fn verify_anchored(&self) -> Result<AnchoredVerification, Error>
pub async fn verify_anchored(&self) -> Result<AnchoredVerification, Error>
Recomputes your chain and returns the latest daily anchor.
Sourcepub async fn chain(&self, params: &ChainParams) -> Result<Chain, Error>
pub async fn chain(&self, params: &ChainParams) -> Result<Chain, Error>
A page of your attestation chain, newest first.
Sourcepub async fn jurisdictions(&self) -> Result<Vec<Jurisdiction>, Error>
pub async fn jurisdictions(&self) -> Result<Vec<Jurisdiction>, Error>
The jurisdictions the policy engine knows.
Trait Implementations§
Source§impl<'a> Clone for Provenance<'a>
impl<'a> Clone for Provenance<'a>
impl<'a> Copy for Provenance<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Provenance<'a>
impl<'a> !UnwindSafe for Provenance<'a>
impl<'a> Freeze for Provenance<'a>
impl<'a> Send for Provenance<'a>
impl<'a> Sync for Provenance<'a>
impl<'a> Unpin for Provenance<'a>
impl<'a> UnsafeUnpin for Provenance<'a>
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