mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-16 01:14:02 +00:00
21 lines
486 B
Rust
21 lines
486 B
Rust
use actix_web::web::Data;
|
|
use lemmy_api_common::context::LemmyContext;
|
|
use lemmy_utils::{error::LemmyError, ConnectionId};
|
|
|
|
mod list_comments;
|
|
mod list_posts;
|
|
mod read_community;
|
|
mod read_person;
|
|
mod resolve_object;
|
|
mod search;
|
|
|
|
#[async_trait::async_trait(?Send)]
|
|
pub trait PerformApub {
|
|
type Response: serde::ser::Serialize + Send;
|
|
|
|
async fn perform(
|
|
&self,
|
|
context: &Data<LemmyContext>,
|
|
websocket_id: Option<ConnectionId>,
|
|
) -> Result<Self::Response, LemmyError>;
|
|
}
|