pub struct MemoryServiceCredentialStore { /* private fields */ }Implementations§
Source§impl MemoryServiceCredentialStore
impl MemoryServiceCredentialStore
pub fn new( records: impl IntoIterator<Item = ServiceCredentialRecord>, ) -> Result<Self, ServiceError>
Trait Implementations§
Source§impl ServiceCredentialStore for MemoryServiceCredentialStore
impl ServiceCredentialStore for MemoryServiceCredentialStore
fn authenticate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
grant_type: &'life1 GrantType,
input: &'life2 CredentialAuthenticationInput,
) -> Pin<Box<dyn Future<Output = Result<Option<CredentialMatch>, ServiceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn has_presentation<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
grant_type: &'life1 GrantType,
input: &'life2 CredentialAuthenticationInput,
) -> Pin<Box<dyn Future<Output = Result<bool, ServiceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn revoke_credential<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
agent_did: &'life1 str,
grant_type: &'life2 GrantType,
credential_id: &'life3 str,
revoked_at: OffsetDateTime,
) -> Pin<Box<dyn Future<Output = Result<(), ServiceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn revoke_grant_type<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
agent_did: &'life1 str,
grant_type: &'life2 GrantType,
revoked_at: OffsetDateTime,
) -> Pin<Box<dyn Future<Output = Result<(), ServiceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn save<'life0, 'async_trait>(
&'life0 self,
record: ServiceCredentialRecord,
) -> Pin<Box<dyn Future<Output = Result<(), ServiceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl !Freeze for MemoryServiceCredentialStore
impl RefUnwindSafe for MemoryServiceCredentialStore
impl Send for MemoryServiceCredentialStore
impl Sync for MemoryServiceCredentialStore
impl Unpin for MemoryServiceCredentialStore
impl UnsafeUnpin for MemoryServiceCredentialStore
impl UnwindSafe for MemoryServiceCredentialStore
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