Struct ParamsDepartmentUpdate

Source
pub struct ParamsDepartmentUpdate {
Show 22 fields pub dept_id: i64, pub parent_id: Option<i64>, pub hide_dept: Option<bool>, pub dept_permits: Option<String>, pub user_permits: Option<String>, pub create_dept_group: Option<bool>, pub order: Option<i64>, pub name: Option<String>, pub source_identifier: Option<String>, pub outer_dept: Option<bool>, pub outer_permit_users: Option<String>, pub outer_permit_depts: Option<String>, pub outer_dept_only_self: Option<bool>, pub language: Option<String>, pub auto_add_user: Option<bool>, pub auto_approve_apply: Option<bool>, pub dept_manager_userid_list: Option<String>, pub group_contain_sub_dept: Option<bool>, pub group_contain_outer_dept: Option<bool>, pub group_contain_hidden_dept: Option<bool>, pub org_dept_owner: Option<String>, pub force_update_fields: Option<String>,
}

Fields§

§dept_id: i64

部门ID,可通过获取部门列表接口获取

§parent_id: Option<i64>

父部门ID,根部ID为1

§hide_dept: Option<bool>

是否隐藏本部门: true:隐藏部门 隐藏后本部门将不会显示在公司通讯录中。 false:显示部门 不传值,则保持不变

§dept_permits: Option<String>

指定可以查看本部门的其他部门列表。 当hide_dept为true时,则此值生效 说明 该参数列表总数和user_permits列表总数之和不能超过50 示例值: 123,456

§user_permits: Option<String>

指定可以查看本部门的用户userid列表。 当hide_dept为true时,则此值生效。 说明 该参数列表总数和dept_permits列表总数之和不能超过50。 示例值:user123,manager222

§create_dept_group: Option<bool>

是否创建一个关联此部门的企业群,默认为false即不创建。 不传值,则保持不变

§order: Option<i64>

在父部门中的排序值,order值小的排序靠前

§name: Option<String>

部门名称,长度限制为1~64个字符,不允许包含字符‘-’‘,’以及‘,’

§source_identifier: Option<String>

部门标识字段,开发者可用该字段来唯一标识一个部门,并与钉钉外部通讯录里的部门做映射。 说明 该字段在企业管理后台部门信息中不可见

§outer_dept: Option<bool>

是否限制本部门成员查看通讯录: true:开启限制。开启后本部门成员只能看到限定范围内的通讯录 false:不限制 不传值,则保持不变

§outer_permit_users: Option<String>

指定本部门成员可查看的通讯录用户userid列表。 当outer_dept为true时,此参数生效。 说明 该参数列表总数和outer_permit_depts列表总数之和不能超过50。 示例值: user123,manager123

§outer_permit_depts: Option<String>

指定本部门成员可查看的通讯录部门ID列表。 当outer_dept为true时,此参数生效。 说明 该参数列表总数和outer_permit_users列表总数之和不能超过50。 示例值:123,456

§outer_dept_only_self: Option<bool>

本部门成员是否只能看到所在部门及下级部门通讯录: true:只能看到所在部门及下级部门通讯录 false:不能查看所有通讯录,在通讯录中仅能看到自己 当outer_dept为true时,此参数生效。 不传值,则保持不变。

§language: Option<String>

通讯录语言: zh_CN:中文 en_US:英文

§auto_add_user: Option<bool>

当部门群已经创建后,有新人加入部门时是否会自动加入该群: true:自动加入群 false:不会自动加入群 不传值,则保持不变

§auto_approve_apply: Option<bool>

是否默认同意加入该部门的申请: true:表示加入该部门的申请将默认同意 false:表示加入该部门的申请需要有权限的管理员同意

§dept_manager_userid_list: Option<String>

部门的主管userId列表,多个userid之间使用英文逗号分隔。 说明 部门主管必须在当前部门内,否则接口会报错不存在的userId

§group_contain_sub_dept: Option<bool>

部门群是否包含子部门: true:包含 false:不包含 不传值,则保持不变

§group_contain_outer_dept: Option<bool>

部门群是否包含外包部门: true:包含 false:不包含 不传值,则保持不变

§group_contain_hidden_dept: Option<bool>

部门群是否包含隐藏部门: true:包含 false:不包含 不传值,则保持不变

§org_dept_owner: Option<String>

企业群群主的userId。 说明 群主必须在当前部门内

§force_update_fields: Option<String>

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

Implementations§

Trait Implementations§

Source§

impl Debug for ParamsDepartmentUpdate

Source§

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

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

impl Default for ParamsDepartmentUpdate

Source§

fn default() -> ParamsDepartmentUpdate

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

impl<'de> Deserialize<'de> for ParamsDepartmentUpdate

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 ParamsDepartmentUpdate

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,