pub trait PluginRepositoryTrait {
Show 13 methods
// Required methods
fn get_by_id<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<PluginModel>, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn add<'life0, 'async_trait>(
&'life0 self,
plugin: PluginModel,
) -> Pin<Box<dyn Future<Output = Result<(), RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn update<'life0, 'async_trait>(
&'life0 self,
plugin: PluginModel,
) -> Pin<Box<dyn Future<Output = Result<PluginModel, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn list_paginated<'life0, 'async_trait>(
&'life0 self,
query: PaginationQuery,
) -> Pin<Box<dyn Future<Output = Result<PaginatedResult<PluginModel>, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn count<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<usize, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn has_entries<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<bool, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn drop_all_entries<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_compiled_code<'life0, 'life1, 'async_trait>(
&'life0 self,
plugin_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn store_compiled_code<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
plugin_id: &'life1 str,
compiled_code: &'life2 str,
source_hash: Option<&'life3 str>,
) -> Pin<Box<dyn Future<Output = Result<(), RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn invalidate_compiled_code<'life0, 'life1, 'async_trait>(
&'life0 self,
plugin_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn invalidate_all_compiled_code<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn has_compiled_code<'life0, 'life1, 'async_trait>(
&'life0 self,
plugin_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_source_hash<'life0, 'life1, 'async_trait>(
&'life0 self,
plugin_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Required Methods§
fn get_by_id<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<PluginModel>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn add<'life0, 'async_trait>(
&'life0 self,
plugin: PluginModel,
) -> Pin<Box<dyn Future<Output = Result<(), RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sourcefn update<'life0, 'async_trait>(
&'life0 self,
plugin: PluginModel,
) -> Pin<Box<dyn Future<Output = Result<PluginModel, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update<'life0, 'async_trait>(
&'life0 self,
plugin: PluginModel,
) -> Pin<Box<dyn Future<Output = Result<PluginModel, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Update an existing plugin. Returns the updated plugin if found.
fn list_paginated<'life0, 'async_trait>(
&'life0 self,
query: PaginationQuery,
) -> Pin<Box<dyn Future<Output = Result<PaginatedResult<PluginModel>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn count<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<usize, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn has_entries<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<bool, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn drop_all_entries<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sourcefn get_compiled_code<'life0, 'life1, 'async_trait>(
&'life0 self,
plugin_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_compiled_code<'life0, 'life1, 'async_trait>(
&'life0 self,
plugin_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get compiled JavaScript code for a plugin
Sourcefn store_compiled_code<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
plugin_id: &'life1 str,
compiled_code: &'life2 str,
source_hash: Option<&'life3 str>,
) -> Pin<Box<dyn Future<Output = Result<(), RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn store_compiled_code<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
plugin_id: &'life1 str,
compiled_code: &'life2 str,
source_hash: Option<&'life3 str>,
) -> Pin<Box<dyn Future<Output = Result<(), RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Store compiled JavaScript code for a plugin
Sourcefn invalidate_compiled_code<'life0, 'life1, 'async_trait>(
&'life0 self,
plugin_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn invalidate_compiled_code<'life0, 'life1, 'async_trait>(
&'life0 self,
plugin_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Invalidate cached code for a plugin
Sourcefn invalidate_all_compiled_code<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn invalidate_all_compiled_code<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Invalidate all cached plugin code
Sourcefn has_compiled_code<'life0, 'life1, 'async_trait>(
&'life0 self,
plugin_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn has_compiled_code<'life0, 'life1, 'async_trait>(
&'life0 self,
plugin_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if a plugin has cached compiled code
Sourcefn get_source_hash<'life0, 'life1, 'async_trait>(
&'life0 self,
plugin_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_source_hash<'life0, 'life1, 'async_trait>(
&'life0 self,
plugin_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get the source hash for cache validation