Struct ssi_dids_core::resolution::StaticDIDResolver
source · pub struct StaticDIDResolver { /* private fields */ }
Expand description
A simple static DID resolver to perform tests.
Implementations§
Trait Implementations§
source§impl Clone for StaticDIDResolver
impl Clone for StaticDIDResolver
source§fn clone(&self) -> StaticDIDResolver
fn clone(&self) -> StaticDIDResolver
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 DIDResolver for StaticDIDResolver
impl DIDResolver for StaticDIDResolver
source§async fn resolve_representation<'a>(
&'a self,
did: &'a DID,
_options: Options,
) -> Result<Output<Vec<u8>>, Error>
async fn resolve_representation<'a>( &'a self, did: &'a DID, _options: Options, ) -> Result<Output<Vec<u8>>, Error>
Resolves a DID representation. Read more
source§async fn resolve_with<'a>(
&'a self,
did: &'a DID,
options: Options,
) -> Result<Output, Error>
async fn resolve_with<'a>( &'a self, did: &'a DID, options: Options, ) -> Result<Output, Error>
Resolves a DID with the given options. Read more
source§async fn resolve<'a>(&'a self, did: &'a DID) -> Result<Output, Error>
async fn resolve<'a>(&'a self, did: &'a DID) -> Result<Output, Error>
Resolves a DID. Read more
source§async fn resolve_into_any_verification_method<'a>(
&'a self,
did: &'a DID,
) -> Result<Option<DIDVerificationMethod>, Error>
async fn resolve_into_any_verification_method<'a>( &'a self, did: &'a DID, ) -> Result<Option<DIDVerificationMethod>, Error>
Resolves a DID and extracts one of the verification methods it defines. Read more
source§async fn dereference_primary<'a>(
&'a self,
primary_did_url: &'a PrimaryDIDURL,
) -> Result<DerefOutput<PrimaryContent>, DerefError>
async fn dereference_primary<'a>( &'a self, primary_did_url: &'a PrimaryDIDURL, ) -> Result<DerefOutput<PrimaryContent>, DerefError>
Dereference a DID URL to retrieve the primary content. Read more
source§async fn dereference_primary_with<'a>(
&'a self,
primary_did_url: &'a PrimaryDIDURL,
resolve_options: Options,
) -> Result<DerefOutput<PrimaryContent>, DerefError>
async fn dereference_primary_with<'a>( &'a self, primary_did_url: &'a PrimaryDIDURL, resolve_options: Options, ) -> Result<DerefOutput<PrimaryContent>, DerefError>
Dereference a DID URL to retrieve the primary content. Read more
source§async fn dereference_primary_with_path_or_query<'a>(
&'a self,
_primary_did_url: &'a PrimaryDIDURL,
) -> Result<DerefOutput<PrimaryContent>, DerefError>
async fn dereference_primary_with_path_or_query<'a>( &'a self, _primary_did_url: &'a PrimaryDIDURL, ) -> Result<DerefOutput<PrimaryContent>, DerefError>
Dereference a DID URL with a path or query to retrieve the primary
content. Read more
source§async fn dereference_with<'a>(
&'a self,
did_url: &'a DIDURL,
options: Options,
) -> Result<DerefOutput, DerefError>
async fn dereference_with<'a>( &'a self, did_url: &'a DIDURL, options: Options, ) -> Result<DerefOutput, DerefError>
Dereference a DID URL. Read more
source§async fn dereference<'a>(
&'a self,
did_url: &'a DIDURL,
) -> Result<DerefOutput, DerefError>
async fn dereference<'a>( &'a self, did_url: &'a DIDURL, ) -> Result<DerefOutput, DerefError>
Dereference a DID URL. Read more
source§fn into_vm_resolver_with<M>(
self,
options: Options,
) -> VerificationMethodDIDResolver<Self, M>where
Self: Sized,
fn into_vm_resolver_with<M>(
self,
options: Options,
) -> VerificationMethodDIDResolver<Self, M>where
Self: Sized,
Turns this DID resolver into a verification method resolver. Read more
source§fn into_vm_resolver<M>(self) -> VerificationMethodDIDResolver<Self, M>where
Self: Sized,
fn into_vm_resolver<M>(self) -> VerificationMethodDIDResolver<Self, M>where
Self: Sized,
Turns this DID resolver into a verification method resolver. Read more
source§impl Debug for StaticDIDResolver
impl Debug for StaticDIDResolver
source§impl Default for StaticDIDResolver
impl Default for StaticDIDResolver
source§fn default() -> StaticDIDResolver
fn default() -> StaticDIDResolver
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StaticDIDResolver
impl RefUnwindSafe for StaticDIDResolver
impl Send for StaticDIDResolver
impl Sync for StaticDIDResolver
impl Unpin for StaticDIDResolver
impl UnwindSafe for StaticDIDResolver
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> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
source§impl<T> Clear for Twhere
T: InitializableFromZeroed + ?Sized,
impl<T> Clear for Twhere
T: InitializableFromZeroed + ?Sized,
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> InitializableFromZeroed for Twhere
T: Default,
impl<T> InitializableFromZeroed for Twhere
T: Default,
source§unsafe fn initialize(place: *mut T)
unsafe fn initialize(place: *mut T)
Called to initialize a place to a valid value, after it is set
to all-bits-zero. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
Returns a reference to the resource of type
T
.