pub struct ExternalContact {
pub external_userid: String,
pub name: String,
pub avatar: String,
pub kind: i32,
pub gender: String,
pub unionid: Option<String>,
pub position: Option<String>,
pub corp_name: Option<String>,
pub corp_full_name: Option<String>,
pub external_profile: Option<ExternalProfile>,
pub follow_user: Option<Vec<FollowUser>>,
pub next_cursor: Option<String>,
}Fields§
§external_userid: String外部联系人的userid
name: String外部联系人的名称
avatar: String外部联系人头像,代开发自建应用需要管理员授权才可以获取,第三方不可获取,上游企业不可获取下游企业客户该字段
kind: i32外部联系人的类型,1表示该外部联系人是微信用户,2表示该外部联系人是企业微信用户
gender: String外部联系人性别 0-未知 1-男性 2-女性。第三方不可获取,上游企业不可获取下游企业客户该字段,返回值为0,表示未定义
unionid: Option<String>外部联系人在微信开放平台的唯一身份标识(微信unionid), 通过此字段企业可将外部联系人与公众号/小程序用户关联起来。 仅当联系人类型是微信用户,且企业绑定了微信开发者ID有此字段。查看绑定方法。 第三方不可获取,上游企业不可获取下游企业客户的unionid字段
position: Option<String>外部联系人的职位,如果外部企业或用户选择隐藏职位,则不返回,仅当联系人类型是企业微信用户时有此字段
corp_name: Option<String>外部联系人所在企业的简称,仅当联系人类型是企业微信用户时有此字段
corp_full_name: Option<String>外部联系人所在企业的主体名称,仅当联系人类型是企业微信用户时有此字段。 仅企业自建应用可获取; 第三方应用、代开发应用、上下游应用不可获取,返回内容为企业名称,即corp_name
external_profile: Option<ExternalProfile>外部联系人的自定义展示信息,可以有多个字段和多种类型,包括文本,网页和小程序, 仅当联系人类型是企业微信用户时有此字段,字段详情见对外属性;
follow_user: Option<Vec<FollowUser>>跟进人
next_cursor: Option<String>分页的cursor,当跟进人多于500人时返回
Trait Implementations§
Source§impl Debug for ExternalContact
impl Debug for ExternalContact
Source§impl Default for ExternalContact
impl Default for ExternalContact
Source§fn default() -> ExternalContact
fn default() -> ExternalContact
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExternalContact
impl<'de> Deserialize<'de> for ExternalContact
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExternalContact
impl RefUnwindSafe for ExternalContact
impl Send for ExternalContact
impl Sync for ExternalContact
impl Unpin for ExternalContact
impl UnwindSafe for ExternalContact
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more