pub trait Client:
Send
+ Sync
+ 'static {
// Required methods
fn create<'life0, 'life1, 'life2, 'async_trait, T>(
&'life0 self,
table: &'life1 str,
item: &'life2 T,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where T: 'async_trait + Serialize + Send + Sync,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn find_by_keys<'life0, 'life1, 'life2, 'async_trait, K>(
&'life0 self,
table: &'life1 str,
key: &'life2 str,
ids: Vec<K>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Value>>> + Send + 'async_trait>>
where K: 'async_trait + Serialize + Send + Sync,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn update_by_keys<'life0, 'life1, 'life2, 'async_trait, K, T>(
&'life0 self,
table: &'life1 str,
key: &'life2 str,
items: Vec<(K, T)>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where K: ToString + AsRef<str> + 'async_trait + Serialize + Send + Sync,
T: 'async_trait + Serialize + Send + Sync,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn delete_by_keys<'life0, 'life1, 'life2, 'async_trait, K>(
&'life0 self,
table: &'life1 str,
key: &'life2 str,
ids: Vec<K>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where K: 'async_trait + Serialize + Send + Sync,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
// Provided method
fn as_str<T: Serialize>(&self, v: T) -> String { ... }
}
Required Methods§
fn create<'life0, 'life1, 'life2, 'async_trait, T>( &'life0 self, table: &'life1 str, item: &'life2 T, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
fn find_by_keys<'life0, 'life1, 'life2, 'async_trait, K>( &'life0 self, table: &'life1 str, key: &'life2 str, ids: Vec<K>, ) -> Pin<Box<dyn Future<Output = Result<Vec<Value>>> + Send + 'async_trait>>
fn update_by_keys<'life0, 'life1, 'life2, 'async_trait, K, T>( &'life0 self, table: &'life1 str, key: &'life2 str, items: Vec<(K, T)>, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
fn delete_by_keys<'life0, 'life1, 'life2, 'async_trait, K>( &'life0 self, table: &'life1 str, key: &'life2 str, ids: Vec<K>, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.