pub trait PerformCrud {
    type Response: Serialize + Send + Clone + Sync;

    // Required method
    fn perform<'life0, 'life1, 'async_trait>(
        &'life0 self,
        context: &'life1 Data<LemmyContext>
    ) -> Pin<Box<dyn Future<Output = Result<Self::Response, LemmyError>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Associated Types§

Required Methods§

source

fn perform<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 Data<LemmyContext> ) -> Pin<Box<dyn Future<Output = Result<Self::Response, LemmyError>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementations on Foreign Types§

source§

impl PerformCrud for EditSite

§

type Response = SiteResponse

source§

fn perform<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 Data<LemmyContext> ) -> Pin<Box<dyn Future<Output = Result<SiteResponse, LemmyError>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl PerformCrud for CreatePost

§

type Response = PostResponse

source§

fn perform<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 Data<LemmyContext> ) -> Pin<Box<dyn Future<Output = Result<PostResponse, LemmyError>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl PerformCrud for GetComment

§

type Response = CommentResponse

source§

fn perform<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 Data<LemmyContext> ) -> Pin<Box<dyn Future<Output = Result<Self::Response, LemmyError>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl PerformCrud for EditPost

§

type Response = PostResponse

source§

fn perform<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 Data<LemmyContext> ) -> Pin<Box<dyn Future<Output = Result<PostResponse, LemmyError>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl PerformCrud for DeletePrivateMessage

§

type Response = PrivateMessageResponse

source§

fn perform<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 Data<LemmyContext> ) -> Pin<Box<dyn Future<Output = Result<PrivateMessageResponse, LemmyError>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl PerformCrud for DeleteCommunity

§

type Response = CommunityResponse

source§

fn perform<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 Data<LemmyContext> ) -> Pin<Box<dyn Future<Output = Result<CommunityResponse, LemmyError>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl PerformCrud for DeleteCustomEmoji

§

type Response = DeleteCustomEmojiResponse

source§

fn perform<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 Data<LemmyContext> ) -> Pin<Box<dyn Future<Output = Result<DeleteCustomEmojiResponse, LemmyError>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl PerformCrud for GetSite

§

type Response = GetSiteResponse

source§

fn perform<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 Data<LemmyContext> ) -> Pin<Box<dyn Future<Output = Result<GetSiteResponse, LemmyError>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl PerformCrud for DeleteAccount

§

type Response = DeleteAccountResponse

source§

fn perform<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 Data<LemmyContext> ) -> Pin<Box<dyn Future<Output = Result<Self::Response, LemmyError>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl PerformCrud for RemoveCommunity

§

type Response = CommunityResponse

source§

fn perform<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 Data<LemmyContext> ) -> Pin<Box<dyn Future<Output = Result<CommunityResponse, LemmyError>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl PerformCrud for Register

§

type Response = LoginResponse

source§

fn perform<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 Data<LemmyContext> ) -> Pin<Box<dyn Future<Output = Result<LoginResponse, LemmyError>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl PerformCrud for GetPrivateMessages

§

type Response = PrivateMessagesResponse

source§

fn perform<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 Data<LemmyContext> ) -> Pin<Box<dyn Future<Output = Result<PrivateMessagesResponse, LemmyError>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl PerformCrud for ListCommunities

§

type Response = ListCommunitiesResponse

source§

fn perform<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 Data<LemmyContext> ) -> Pin<Box<dyn Future<Output = Result<ListCommunitiesResponse, LemmyError>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl PerformCrud for GetPost

§

type Response = GetPostResponse

source§

fn perform<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 Data<LemmyContext> ) -> Pin<Box<dyn Future<Output = Result<GetPostResponse, LemmyError>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl PerformCrud for RemoveComment

§

type Response = CommentResponse

source§

fn perform<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 Data<LemmyContext> ) -> Pin<Box<dyn Future<Output = Result<CommentResponse, LemmyError>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl PerformCrud for DeletePost

§

type Response = PostResponse

source§

fn perform<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 Data<LemmyContext> ) -> Pin<Box<dyn Future<Output = Result<PostResponse, LemmyError>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl PerformCrud for EditPrivateMessage

§

type Response = PrivateMessageResponse

source§

fn perform<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 Data<LemmyContext> ) -> Pin<Box<dyn Future<Output = Result<PrivateMessageResponse, LemmyError>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl PerformCrud for CreateComment

§

type Response = CommentResponse

source§

fn perform<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 Data<LemmyContext> ) -> Pin<Box<dyn Future<Output = Result<CommentResponse, LemmyError>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl PerformCrud for CreatePrivateMessage

§

type Response = PrivateMessageResponse

source§

fn perform<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 Data<LemmyContext> ) -> Pin<Box<dyn Future<Output = Result<PrivateMessageResponse, LemmyError>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl PerformCrud for CreateCustomEmoji

§

type Response = CustomEmojiResponse

source§

fn perform<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 Data<LemmyContext> ) -> Pin<Box<dyn Future<Output = Result<CustomEmojiResponse, LemmyError>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl PerformCrud for RemovePost

§

type Response = PostResponse

source§

fn perform<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 Data<LemmyContext> ) -> Pin<Box<dyn Future<Output = Result<PostResponse, LemmyError>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl PerformCrud for EditCustomEmoji

§

type Response = CustomEmojiResponse

source§

fn perform<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 Data<LemmyContext> ) -> Pin<Box<dyn Future<Output = Result<CustomEmojiResponse, LemmyError>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl PerformCrud for CreateSite

§

type Response = SiteResponse

source§

fn perform<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 Data<LemmyContext> ) -> Pin<Box<dyn Future<Output = Result<SiteResponse, LemmyError>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl PerformCrud for CreateCommunity

§

type Response = CommunityResponse

source§

fn perform<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 Data<LemmyContext> ) -> Pin<Box<dyn Future<Output = Result<CommunityResponse, LemmyError>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl PerformCrud for DeleteComment

§

type Response = CommentResponse

source§

fn perform<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 Data<LemmyContext> ) -> Pin<Box<dyn Future<Output = Result<CommentResponse, LemmyError>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl PerformCrud for EditCommunity

§

type Response = CommunityResponse

source§

fn perform<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 Data<LemmyContext> ) -> Pin<Box<dyn Future<Output = Result<CommunityResponse, LemmyError>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl PerformCrud for EditComment

§

type Response = CommentResponse

source§

fn perform<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 Data<LemmyContext> ) -> Pin<Box<dyn Future<Output = Result<CommentResponse, LemmyError>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§