Trait Relation

Source
pub trait Relation {
    // Required methods
    fn get_followers<'life0, 'life1, 'async_trait>(
        &'life0 self,
        uid: &'life1 String,
    ) -> Pin<Box<dyn Future<Output = Result<FollowersResp, Box<dyn Error>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_following<'life0, 'life1, 'async_trait>(
        &'life0 self,
        uid: &'life1 String,
        cursor: Option<String>,
    ) -> Pin<Box<dyn Future<Output = Result<FollowingResp, Box<dyn Error>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn check_following<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        uid: &'life1 String,
        target_uid: &'life2 String,
    ) -> Pin<Box<dyn Future<Output = Result<bool, Box<dyn Error>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn get_followers<'life0, 'life1, 'async_trait>( &'life0 self, uid: &'life1 String, ) -> Pin<Box<dyn Future<Output = Result<FollowersResp, Box<dyn Error>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_following<'life0, 'life1, 'async_trait>( &'life0 self, uid: &'life1 String, cursor: Option<String>, ) -> Pin<Box<dyn Future<Output = Result<FollowingResp, Box<dyn Error>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn check_following<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, uid: &'life1 String, target_uid: &'life2 String, ) -> Pin<Box<dyn Future<Output = Result<bool, Box<dyn Error>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§