pub struct PlatformIdentityProvider { /* private fields */ }Implementations§
Source§impl PlatformIdentityProvider
impl PlatformIdentityProvider
pub fn new( options: PlatformIdentityProviderOptions, ) -> Result<Arc<Self>, AgentError>
pub async fn find_identity_by_service_did( &self, service_did: &str, ) -> Result<Option<AgentIdentity>, AgentError>
Trait Implementations§
Source§impl Clone for PlatformIdentityProvider
impl Clone for PlatformIdentityProvider
Source§fn clone(&self) -> PlatformIdentityProvider
fn clone(&self) -> PlatformIdentityProvider
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 IdentityProvider for PlatformIdentityProvider
impl IdentityProvider for PlatformIdentityProvider
fn get_or_create_identity<'life0, 'async_trait>(
&'life0 self,
request: IdentityRequest,
) -> Pin<Box<dyn Future<Output = Result<AgentIdentity, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn signer_for<'life0, 'life1, 'async_trait>(
&'life0 self,
identity: &'life1 AgentIdentity,
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn AssertionSigner>, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl !Freeze for PlatformIdentityProvider
impl !RefUnwindSafe for PlatformIdentityProvider
impl !UnwindSafe for PlatformIdentityProvider
impl Send for PlatformIdentityProvider
impl Sync for PlatformIdentityProvider
impl Unpin for PlatformIdentityProvider
impl UnsafeUnpin for PlatformIdentityProvider
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