Skip to main content

PersonaAccessor

Trait PersonaAccessor 

Source
pub trait PersonaAccessor: Send + Sync {
    // Required methods
    fn get_active_persona_id<'life0, 'life1, 'async_trait>(
        &'life0 self,
        workspace_id: Option<&'life1 str>,
    ) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_persona_details<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        workspace_id: Option<&'life1 str>,
        persona_id: Option<&'life2 str>,
    ) -> Pin<Box<dyn Future<Output = Result<Option<PersonaDetails>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Trait for accessing persona subsystem

Required Methods§

Source

fn get_active_persona_id<'life0, 'life1, 'async_trait>( &'life0 self, workspace_id: Option<&'life1 str>, ) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get active persona ID

Source

fn get_persona_details<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, workspace_id: Option<&'life1 str>, persona_id: Option<&'life2 str>, ) -> Pin<Box<dyn Future<Output = Result<Option<PersonaDetails>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Get persona details

Implementors§