Struct dingtalk_rs::client::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: 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: 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
sourceimpl Debug for UserDetail
impl Debug for UserDetail
sourceimpl Default for UserDetail
impl Default for UserDetail
sourcefn default() -> UserDetail
fn default() -> UserDetail
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for UserDetail
impl<'de> Deserialize<'de> for UserDetail
sourcefn 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
sourceimpl Serialize for UserDetail
impl Serialize for UserDetail
Auto Trait Implementations
impl RefUnwindSafe for UserDetail
impl Send for UserDetail
impl Sync for UserDetail
impl Unpin for UserDetail
impl UnwindSafe for UserDetail
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more