Struct ParamsUpdateUser

Source
pub struct ParamsUpdateUser {
Show 19 fields pub userid: String, pub name: Option<String>, pub hide_mobile: Option<bool>, pub telephone: Option<String>, pub job_number: Option<String>, pub manager_userid: Option<String>, pub title: Option<String>, pub email: Option<String>, pub org_email: Option<String>, pub work_place: Option<String>, pub remark: Option<String>, pub dept_id_list: Option<String>, 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 language: Option<ParamLanguage>, pub force_update_fields: Option<String>,
}

Fields§

§userid: String

员工的userId

§name: Option<String>

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

§hide_mobile: Option<bool>

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

§telephone: Option<String>

分机号,长度最大50个字符。 说明 分机号是唯一的,企业内不能重复

§job_number: Option<String>

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

§manager_userid: Option<String>

直属主管的userId

§title: Option<String>

职位,长度最大200个字符

§email: Option<String>

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

§org_email: Option<String>

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

§work_place: Option<String>

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

§remark: Option<String>

备注,长度最大2000个字符

§dept_id_list: Option<String>

所属部门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时间戳,单位毫秒

§language: Option<ParamLanguage>

通讯录语言,取值。 zh_CN:中文(默认值)。 en_US:英文

§force_update_fields: Option<String>

强制更新的字段,支持清空指定的字段,多个字段之间使用逗号分隔。目前支持字段: manager_userid

Trait Implementations§

Source§

impl Debug for ParamsUpdateUser

Source§

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

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

impl Default for ParamsUpdateUser

Source§

fn default() -> ParamsUpdateUser

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

impl<'de> Deserialize<'de> for ParamsUpdateUser

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 ParamsUpdateUser

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,