mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-23 19:31:33 +00:00
Nutomic
3565ad984a
* Remove chatserver * fix clippy * Remove captchas (fixes #2922) * fix prettier * fix api_common build * cargo fmt
18 lines
410 B
Rust
18 lines
410 B
Rust
use actix_web::web::Data;
|
|
use lemmy_api_common::context::LemmyContext;
|
|
use lemmy_utils::error::LemmyError;
|
|
|
|
mod comment;
|
|
mod community;
|
|
mod custom_emoji;
|
|
mod post;
|
|
mod private_message;
|
|
mod site;
|
|
mod user;
|
|
|
|
#[async_trait::async_trait(?Send)]
|
|
pub trait PerformCrud {
|
|
type Response: serde::ser::Serialize + Send;
|
|
|
|
async fn perform(&self, context: &Data<LemmyContext>) -> Result<Self::Response, LemmyError>;
|
|
}
|