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§
Sourcefn 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_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
Sourcefn 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_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
Sourcefn 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_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
Sourcefn 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_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
Sourcefn 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_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
Sourcefn 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_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