1 use actix_web::web::Data;
2 use lemmy_api_common::context::LemmyContext;
3 use lemmy_utils::error::LemmyError;
13 #[async_trait::async_trait(?Send)]
14 pub trait PerformCrud {
15 type Response: serde::ser::Serialize + Send + Clone + Sync;
17 async fn perform(&self, context: &Data<LemmyContext>) -> Result<Self::Response, LemmyError>;