pub trait TrustchainHTTP {
// Required methods
fn resolve_did<'life0, 'life1, 'async_trait>(
did: &'life0 str,
resolver: &'life1 dyn TrustchainResolver,
) -> Pin<Box<dyn Future<Output = Result<ResolutionResult, TrustchainHTTPError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait;
fn resolve_chain<'life0, 'life1, 'async_trait, T>(
did: &'life0 str,
verifier: &'life1 TrustchainVerifier<T>,
root_event_time: Timestamp,
) -> Pin<Box<dyn Future<Output = Result<DIDChainResolutionResult, TrustchainHTTPError>> + Send + 'async_trait>>
where T: 'async_trait + DIDResolver + Send + Sync,
'life0: 'async_trait,
'life1: 'async_trait;
fn resolve_bundle<'life0, 'life1, 'async_trait, T>(
did: &'life0 str,
verifier: &'life1 TrustchainVerifier<T>,
) -> Pin<Box<dyn Future<Output = Result<VerificationBundle, TrustchainHTTPError>> + Send + 'async_trait>>
where T: 'async_trait + DIDResolver + Send + Sync,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
A HTTP API for resolving DID documents, chains, and verification bundles.
Required Methods§
Sourcefn resolve_did<'life0, 'life1, 'async_trait>(
did: &'life0 str,
resolver: &'life1 dyn TrustchainResolver,
) -> Pin<Box<dyn Future<Output = Result<ResolutionResult, TrustchainHTTPError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
fn resolve_did<'life0, 'life1, 'async_trait>(
did: &'life0 str,
resolver: &'life1 dyn TrustchainResolver,
) -> Pin<Box<dyn Future<Output = Result<ResolutionResult, TrustchainHTTPError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Resolves a DID document.
Sourcefn resolve_chain<'life0, 'life1, 'async_trait, T>(
did: &'life0 str,
verifier: &'life1 TrustchainVerifier<T>,
root_event_time: Timestamp,
) -> Pin<Box<dyn Future<Output = Result<DIDChainResolutionResult, TrustchainHTTPError>> + Send + 'async_trait>>
fn resolve_chain<'life0, 'life1, 'async_trait, T>( did: &'life0 str, verifier: &'life1 TrustchainVerifier<T>, root_event_time: Timestamp, ) -> Pin<Box<dyn Future<Output = Result<DIDChainResolutionResult, TrustchainHTTPError>> + Send + 'async_trait>>
Resolves a DID chain.
Sourcefn resolve_bundle<'life0, 'life1, 'async_trait, T>(
did: &'life0 str,
verifier: &'life1 TrustchainVerifier<T>,
) -> Pin<Box<dyn Future<Output = Result<VerificationBundle, TrustchainHTTPError>> + Send + 'async_trait>>
fn resolve_bundle<'life0, 'life1, 'async_trait, T>( did: &'life0 str, verifier: &'life1 TrustchainVerifier<T>, ) -> Pin<Box<dyn Future<Output = Result<VerificationBundle, TrustchainHTTPError>> + Send + 'async_trait>>
Resolves a DID verification bundle.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.