Struct ParamsCreateUser

Source
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§

Source§

impl ParamsCreateUser

Source

pub fn new( name: String, mobile: String, dept_id_list: Vec<i64>, ) -> ParamsCreateUser

简单初始化

Trait Implementations§

Source§

impl Debug for ParamsCreateUser

Source§

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

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

impl Default for ParamsCreateUser

Source§

fn default() -> ParamsCreateUser

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

impl<'de> Deserialize<'de> for ParamsCreateUser

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 ParamsCreateUser

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,