1 2 3 4 5 6 7 8 9 10 11
use tonic::Status; #[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>; }