Trait DataAdapter
Source pub trait DataAdapter: Send + Sync {
// Required methods
fn list<'life0, 'async_trait>(
&'life0 self,
params: ListParams,
) -> Pin<Box<dyn Future<Output = Result<Vec<HashMap<String, Value>>, AdminError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 Value,
) -> Pin<Box<dyn Future<Output = Result<HashMap<String, Value>, AdminError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn create<'life0, 'async_trait>(
&'life0 self,
data: HashMap<String, Value>,
) -> Pin<Box<dyn Future<Output = Result<Value, AdminError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn update<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 Value,
data: HashMap<String, Value>,
) -> Pin<Box<dyn Future<Output = Result<(), AdminError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 Value,
) -> Pin<Box<dyn Future<Output = Result<(), AdminError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn count<'life0, 'life1, 'async_trait>(
&'life0 self,
params: &'life1 ListParams,
) -> Pin<Box<dyn Future<Output = Result<u64, AdminError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}