BatchExporter

Trait BatchExporter 

Source
pub trait BatchExporter: Send + Sync {
    // Required methods
    fn get_app_store<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        persona_id: &'life1 str,
        app_id: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<HashMap<String, Value>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn dump_app<'life0, 'life1, 'async_trait>(
        &'life0 self,
        app_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<HashMap<String, HashMap<String, Value>>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Allows retrieving bulk data from the store.

Required Methods§

Source

fn get_app_store<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, persona_id: &'life1 str, app_id: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<HashMap<String, Value>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Returns all key-value pairs for a specific app within a persona.

Source

fn dump_app<'life0, 'life1, 'async_trait>( &'life0 self, app_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<HashMap<String, HashMap<String, Value>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Returns data for a specific app across all personas.

Implementors§