Trait lemmy_api::Perform[][src]

pub trait Perform {
    type Response: Serialize + Send;
    fn perform<'life0, 'life1, 'async_trait>(
        &'life0 self,
        context: &'life1 Data<LemmyContext>,
        websocket_id: Option<ConnectionId>
    ) -> Pin<Box<dyn Future<Output = Result<Self::Response, LemmyError>> + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

Associated Types

Required methods

Implementations on Foreign Types

Creates a comment report and notifies the moderators of the community

Resolves or unresolves a comment report and notifies the moderators of the community

Lists comment reports for a community if an id is supplied or returns all comment reports for communities a user moderates

Creates a post report and notifies the moderators of the community

Resolves or unresolves a post report and notifies the moderators of the community

Lists post reports for a community if an id is supplied or returns all post reports for communities a user moderates

Implementors