pub struct StaticTypeDidProfileResolver { /* private fields */ }Expand description
In-memory TypeDID profile resolver for examples and tests.
Implementations§
Source§impl StaticTypeDidProfileResolver
impl StaticTypeDidProfileResolver
Sourcepub fn with_profiles(
self,
target: impl Into<String>,
profiles: Vec<TypeDidProfile>,
) -> Self
pub fn with_profiles( self, target: impl Into<String>, profiles: Vec<TypeDidProfile>, ) -> Self
Register profiles for a target DID, contact, agent card, or endpoint.
Trait Implementations§
Source§impl Clone for StaticTypeDidProfileResolver
impl Clone for StaticTypeDidProfileResolver
Source§fn clone(&self) -> StaticTypeDidProfileResolver
fn clone(&self) -> StaticTypeDidProfileResolver
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 StaticTypeDidProfileResolver
impl Debug for StaticTypeDidProfileResolver
Source§impl Default for StaticTypeDidProfileResolver
impl Default for StaticTypeDidProfileResolver
Source§fn default() -> StaticTypeDidProfileResolver
fn default() -> StaticTypeDidProfileResolver
Returns the “default value” for a type. Read more
Source§impl TypeDidProfileResolver for StaticTypeDidProfileResolver
impl TypeDidProfileResolver for StaticTypeDidProfileResolver
Source§fn resolve_profiles(
&self,
target: &str,
) -> Result<Vec<TypeDidProfile>, DidError>
fn resolve_profiles( &self, target: &str, ) -> Result<Vec<TypeDidProfile>, DidError>
Resolve profiles advertised by
target.Auto Trait Implementations§
impl Freeze for StaticTypeDidProfileResolver
impl RefUnwindSafe for StaticTypeDidProfileResolver
impl Send for StaticTypeDidProfileResolver
impl Sync for StaticTypeDidProfileResolver
impl Unpin for StaticTypeDidProfileResolver
impl UnsafeUnpin for StaticTypeDidProfileResolver
impl UnwindSafe for StaticTypeDidProfileResolver
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