mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-06-03 05:59:25 +00:00
6bc49bdd70
* Add Custom Emojis * Modify index
23 lines
479 B
Rust
23 lines
479 B
Rust
use actix_web::web::Data;
|
|
use lemmy_api_common::context::LemmyContext;
|
|
use lemmy_utils::{error::LemmyError, ConnectionId};
|
|
|
|
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>,
|
|
websocket_id: Option<ConnectionId>,
|
|
) -> Result<Self::Response, LemmyError>;
|
|
}
|