Trait lemmy_apub::ApubObjectType[][src]

pub trait ApubObjectType {
    fn send_delete<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        creator: &'life1 DbPerson,
        context: &'life2 LemmyContext
    ) -> Pin<Box<dyn Future<Output = Result<(), LemmyError>> + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
fn send_undo_delete<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        creator: &'life1 DbPerson,
        context: &'life2 LemmyContext
    ) -> Pin<Box<dyn Future<Output = Result<(), LemmyError>> + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
fn send_remove<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        mod_: &'life1 DbPerson,
        context: &'life2 LemmyContext
    ) -> Pin<Box<dyn Future<Output = Result<(), LemmyError>> + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
fn send_undo_remove<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        mod_: &'life1 DbPerson,
        context: &'life2 LemmyContext
    ) -> Pin<Box<dyn Future<Output = Result<(), LemmyError>> + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; }
Expand description

Common functions for ActivityPub objects, which are implemented by most (but not all) objects and actors in Lemmy.

Required methods

Implementations on Foreign Types

impl ApubObjectType for Post

Implementors