Struct UserDetail

Source
pub struct UserDetail {
Show 29 fields pub userid: String, pub unionid: String, pub name: String, pub avatar: Option<String>, pub state_code: Option<String>, pub manager_userid: Option<String>, pub mobile: Option<String>, pub hide_mobile: bool, pub telephone: Option<String>, pub job_number: String, pub title: Option<String>, pub email: Option<String>, pub work_place: Option<String>, pub remark: Option<String>, pub exclusive_account: bool, pub org_email: Option<String>, pub dept_id_list: Vec<i64>, pub dept_order_list: Option<Vec<DeptOrder>>, pub extension: Option<String>, pub hired_date: Option<i64>, pub active: bool, pub real_authed: Option<bool>, pub org_email_type: Option<String>, pub senior: Option<bool>, pub admin: bool, pub boss: bool, pub leader_in_dept: Option<Vec<DeptLeader>>, pub role_list: Option<Vec<Role>>, pub union_emp_ext: Option<UnionEmpExt>,
}

Fields§

§userid: String

员工的userId

§unionid: String

员工在当前开发者企业账号范围内的唯一标识

§name: String

员工姓名

§avatar: Option<String>

头像。

§state_code: Option<String>

国际电话区号。 说明 第三方企业应用不返回该字段;如需获取state_code,可以使用钉钉统一授权套件方式获取。

§manager_userid: Option<String>

员工的直属主管。 说明 员工在企业管理后台个人信息面板中,直属主管内有值,才会返回该字段。

§mobile: Option<String>

手机号码。 说明 企业内部应用,只有应用开通通讯录邮箱等个人信息权限,才会返回该字段。 第三方企业应用不返回该字段,如需获取mobile,可以使用钉钉统一授权套件方式获取

§hide_mobile: bool

是否号码隐藏: true:隐藏 false:不隐藏 说明 隐藏手机号后,手机号在个人资料页隐藏,但仍可对其发DING、发起钉钉免费商务电话。

§telephone: Option<String>

分机号。 说明 第三方企业应用不返回该参数

§job_number: String

员工工号

§title: Option<String>

职位

§email: Option<String>

员工邮箱。 说明 企业内部应用,只有应用开通通讯录邮箱等个人信息权限,才会返回该字段。 第三方企业应用,不返回该参数;如需获取email,可以使用钉钉统一授权套件方式获取

§work_place: Option<String>

办公地点。 说明 员工信息面板中该字段必须有值,才正常返回。如果无值,则不返回该字段。 企业内部应用,只有应用开通通讯录邮箱等个人信息权限,才会返回该字段。 第三方企业应用,不返回该参数

§remark: Option<String>

备注。 说明 员工信息面板中该字段必须有值,才正常返回。如果无值,则不返回该字段。 企业内部应用,只有应用开通通讯录邮箱等个人信息权限,才会返回该字段。 第三方企业应用,不返回该参数

§exclusive_account: bool

是否为专属帐号: true:是 false:不是

§org_email: Option<String>

员工的企业邮箱。 如果员工的企业邮箱没有开通,返回信息中不包含该数据。 说明 第三方企业应用不返回该参数

§dept_id_list: Vec<i64>

所属部门id列表

§dept_order_list: Option<Vec<DeptOrder>>

员工在对应的部门中的排序

§extension: Option<String>

扩展属性,最大长度2000个字符。 说明 员工信息面板中添加的拓展字段内有值才返回。 企业内部应用,只有应用开通通讯录邮箱等个人信息权限,才会返回该字段。 第三方企业应用,不返回该字段

§hired_date: Option<i64>

入职时间,Unix时间戳,单位毫秒。 说明 信息面板中入职时间字段内有值才返回。 第三方企业应用,不返回该参数

§active: bool

是否激活了钉钉: true:已激活 false:未激活

§real_authed: Option<bool>

是否完成了实名认证: true:已认证 false:未认证

§org_email_type: Option<String>

员工的企业邮箱类型。 profession:标准版 base:基础版

§senior: Option<bool>

是否为企业的高管:

§admin: bool

是否为企业的管理员

§boss: bool

是否为企业的老板

§leader_in_dept: Option<Vec<DeptLeader>>

员工所在部门信息及是否是领导:

§role_list: Option<Vec<Role>>

角色列表

§union_emp_ext: Option<UnionEmpExt>

当用户来自于关联组织时的关联信息。 说明 用户所在企业存在关联关系的企业,返回该字段。

Trait Implementations§

Source§

impl Debug for UserDetail

Source§

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

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

impl Default for UserDetail

Source§

fn default() -> UserDetail

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

impl<'de> Deserialize<'de> for UserDetail

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 UserDetail

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,