Skip to main content

IdentityStore

Trait IdentityStore 

Source
pub trait IdentityStore: Send + Sync {
    // Required methods
    fn find_or_create<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        principal: &'life1 str,
        service_did: &'life2 str,
        create: IdentityCreation,
    ) -> Pin<Box<dyn Future<Output = Result<IdentityRecord, PlatformError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn find_by_agent_did<'life0, 'life1, 'async_trait>(
        &'life0 self,
        agent_did: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Option<IdentityRecord>, PlatformError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn find_by_agent_did_id<'life0, 'life1, 'async_trait>(
        &'life0 self,
        agent_did_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Option<IdentityRecord>, PlatformError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get<'life0, 'life1, 'async_trait>(
        &'life0 self,
        agent_identity_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Option<IdentityRecord>, PlatformError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn list<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        principal: &'life1 str,
        query: &'life2 IdentityListQuery,
    ) -> Pin<Box<dyn Future<Output = Result<IdentityListResult, PlatformError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn update_status<'life0, 'life1, 'async_trait>(
        &'life0 self,
        agent_identity_id: &'life1 str,
        status: ManagedAgentStatus,
        updated_at: OffsetDateTime,
    ) -> Pin<Box<dyn Future<Output = Result<Option<IdentityRecord>, PlatformError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn find_or_create<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, principal: &'life1 str, service_did: &'life2 str, create: IdentityCreation, ) -> Pin<Box<dyn Future<Output = Result<IdentityRecord, PlatformError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn find_by_agent_did<'life0, 'life1, 'async_trait>( &'life0 self, agent_did: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Option<IdentityRecord>, PlatformError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn find_by_agent_did_id<'life0, 'life1, 'async_trait>( &'life0 self, agent_did_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Option<IdentityRecord>, PlatformError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get<'life0, 'life1, 'async_trait>( &'life0 self, agent_identity_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Option<IdentityRecord>, PlatformError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn list<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, principal: &'life1 str, query: &'life2 IdentityListQuery, ) -> Pin<Box<dyn Future<Output = Result<IdentityListResult, PlatformError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn update_status<'life0, 'life1, 'async_trait>( &'life0 self, agent_identity_id: &'life1 str, status: ManagedAgentStatus, updated_at: OffsetDateTime, ) -> Pin<Box<dyn Future<Output = Result<Option<IdentityRecord>, PlatformError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§