ExternalContact

Struct ExternalContact 

Source
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

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ExternalContact

Source§

fn default() -> ExternalContact

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ExternalContact

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for ExternalContact

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,