AsyncBatch

Trait AsyncBatch 

Source
pub trait AsyncBatch {
    // Required methods
    fn batch_user_sync<'life0, 'async_trait>(
        &'life0 self,
        params: ParamsBatchUserSync,
    ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn batch_user_replace<'life0, 'async_trait>(
        &'life0 self,
        params: ParamsBatchUserReplace,
    ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn batch_party_replace<'life0, 'async_trait>(
        &'life0 self,
        params: ParamsBatchPartyReplace,
    ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn batch_result_get<'life0, 'life1, 'async_trait>(
        &'life0 self,
        job_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<JobStatus>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn batch_user_sync<'life0, 'async_trait>( &'life0 self, params: ParamsBatchUserSync, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

增量更新成员 https://developer.work.weixin.qq.com/document/path/90980 @return string job_id

Source

fn batch_user_replace<'life0, 'async_trait>( &'life0 self, params: ParamsBatchUserReplace, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

全量覆盖成员 https://developer.work.weixin.qq.com/document/path/90981 @return string job_id

Source

fn batch_party_replace<'life0, 'async_trait>( &'life0 self, params: ParamsBatchPartyReplace, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

全量覆盖部门 https://developer.work.weixin.qq.com/document/path/90982 @return string job_id

Source

fn batch_result_get<'life0, 'life1, 'async_trait>( &'life0 self, job_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<JobStatus>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

获取异步任务结果 https://developer.work.weixin.qq.com/document/path/90983

Implementors§