pub struct ParamsCreateUser {
Show 20 fields pub userid: Option<String>, pub name: String, pub mobile: String, pub hide_mobile: Option<bool>, pub telephone: Option<String>, pub job_number: Option<String>, pub title: Option<String>, pub email: Option<String>, pub org_email: Option<String>, pub org_email_type: Option<String>, pub work_place: Option<String>, pub remark: Option<String>, pub dept_id_list: Vec<i64>, pub dept_order_list: Option<Vec<DeptOrder>>, pub dept_title_list: Option<Vec<DeptTitle>>, pub extension: Option<String>, pub senior_mode: Option<bool>, pub hired_date: Option<i64>, pub manager_userid: Option<u64>, pub login_email: Option<String>,
}
Expand description

创建用户参数

Fields

userid: Option<String>

员工唯一标识ID(不可修改),企业内必须唯一。 长度为1~64个字符,如果不传,将自动生成一个userid。

name: String

员工名称,长度最大80个字符

mobile: String

手机号码,企业内必须唯一,不可重复。 如果是国际号码、中国港澳台地区号码,请使用+xx-xxxxxx的格式。 如果公司注册地址是非中国大陆地区,则在添加大陆地区用户时,手机号要使用+86-xxxxxx格式。

hide_mobile: Option<bool>

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

telephone: Option<String>

分机号,长度最大50个字符

job_number: Option<String>

员工工号,长度最大为50个字符

title: Option<String>

职位,长度最大为200个字符

email: Option<String>

员工个人邮箱,长度最大50个字符 说明 员工邮箱是唯一的,企业内不能重复

org_email: Option<String>

员工的企业邮箱,长度最大100个字符 说明 需满足以下条件,此字段才生效:员工的企业邮箱已开通。

org_email_type: Option<String>

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

work_place: Option<String>

办公地点,长度最大100个字符

remark: Option<String>

备注,长度最大2000个字符

dept_id_list: Vec<i64>

所属部门id列表,每次调用最多传100个部门ID

dept_order_list: Option<Vec<DeptOrder>>

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

dept_title_list: Option<Vec<DeptTitle>>

员工在对应的部门中的职位

extension: Option<String>

扩展属性,可以设置多种属性,最大长度2000个字符

senior_mode: Option<bool>

是否开启高管模式,默认值false 开启后,手机号码对所有员工隐藏。 普通员工无法对其发DING、发起钉钉商务电话。 高管之间可以发DING、发起钉钉商务电话

hired_date: Option<i64>

入职时间,Unix时间戳,单位毫秒

manager_userid: Option<u64>

直属主管的userId

login_email: Option<String>

登录邮箱

Implementations

简单初始化

Trait Implementations

Formats the value using the given formatter. Read more

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

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

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

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

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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

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