1 2 3 4 5 6 7 8 9 10 11 12 13 14
//! Traits for insert. use tonic::Status; /// Tries to insert a row to a table. #[tonic::async_trait] pub trait Insert: Sync + Send + 'static { type Row: Send + Sync; async fn insert_to_table( &self, checked_table_name: &str, row: &Self::Row, ) -> Result<u64, Status>; }