1 use actix_web::web::Data;
2 use lemmy_utils::{ConnectionId, LemmyError};
3 use lemmy_websocket::LemmyContext;
13 #[async_trait::async_trait(?Send)]
14 pub trait PerformCrud {
15 type Response: serde::ser::Serialize + Send;
19 context: &Data<LemmyContext>,
20 websocket_id: Option<ConnectionId>,
21 ) -> Result<Self::Response, LemmyError>;