TagManager

Trait TagManager 

Source
pub trait TagManager {
    // Required methods
    fn tag_create<'life0, 'life1, 'async_trait>(
        &'life0 self,
        name: &'life1 str,
        id: Option<i64>,
    ) -> Pin<Box<dyn Future<Output = Result<i64>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn tag_update<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: i64,
        name: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn tag_delete<'life0, 'async_trait>(
        &'life0 self,
        id: i64,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn tag_user_get<'life0, 'async_trait>(
        &'life0 self,
        id: i64,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<TagUser>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn tag_user_add<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        id: i64,
        user_list: Option<&'life1 [&'life2 str]>,
        party_list: Option<&'life3 [i64]>,
    ) -> Pin<Box<dyn Future<Output = Result<ResponseTagUser>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn tag_user_delete<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        id: i64,
        user_list: Option<&'life1 [&'life2 str]>,
        party_list: Option<&'life3 [i64]>,
    ) -> Pin<Box<dyn Future<Output = Result<ResponseTagUser>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn tag_list<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Tag>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn tag_create<'life0, 'life1, 'async_trait>( &'life0 self, name: &'life1 str, id: Option<i64>, ) -> Pin<Box<dyn Future<Output = Result<i64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

创建标签 https://developer.work.weixin.qq.com/document/path/90210

Source

fn tag_update<'life0, 'life1, 'async_trait>( &'life0 self, id: i64, name: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

更新标签名称 https://developer.work.weixin.qq.com/document/path/90211

Source

fn tag_delete<'life0, 'async_trait>( &'life0 self, id: i64, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

删除标签 https://developer.work.weixin.qq.com/document/path/90212

Source

fn tag_user_get<'life0, 'async_trait>( &'life0 self, id: i64, ) -> Pin<Box<dyn Future<Output = Result<Vec<TagUser>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

获取标签成员 https://developer.work.weixin.qq.com/document/path/90213

Source

fn tag_user_add<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, id: i64, user_list: Option<&'life1 [&'life2 str]>, party_list: Option<&'life3 [i64]>, ) -> Pin<Box<dyn Future<Output = Result<ResponseTagUser>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

增加标签成员 https://developer.work.weixin.qq.com/document/path/90214 @params user_list: 企业成员ID列表,注意:user_list、party)list不能同时为空,单次请求个数不超过1000 party_list: 企业部门ID列表,注意:user_list、party_list不能同时为空,单次请求个数不超过100

Source

fn tag_user_delete<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, id: i64, user_list: Option<&'life1 [&'life2 str]>, party_list: Option<&'life3 [i64]>, ) -> Pin<Box<dyn Future<Output = Result<ResponseTagUser>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

删除标签成员 https://developer.work.weixin.qq.com/document/path/90215 @params user_list: 企业成员ID列表,注意:user_list、party)list不能同时为空,单次请求个数不超过1000 party_list: 企业部门ID列表,注意:user_list、party_list不能同时为空,单次请求个数不超过100

Source

fn tag_list<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<Tag>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

获取标签列表 https://developer.work.weixin.qq.com/document/path/90216

Implementors§