Struct ParamsDepartmentCreate

Source
pub struct ParamsDepartmentCreate {
Show 13 fields pub name: String, pub parent_id: i64, pub hide_dept: Option<bool>, pub dept_permits: Option<String>, pub user_permits: Option<String>, pub outer_dept: Option<bool>, pub outer_dept_only_self: Option<bool>, pub outer_permit_users: Option<String>, pub outer_permit_depts: Option<String>, pub create_dept_group: Option<bool>, pub auto_approve_apply: Option<bool>, pub order: Option<u64>, pub source_identifier: Option<String>,
}

Fields§

§name: String

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

§parent_id: i64

父部门ID,根部门ID为1

§hide_dept: Option<bool>

是否隐藏本部门: true:隐藏部门,隐藏后本部门将不会显示在公司通讯录中 false(默认值):显示部门

§dept_permits: Option<String>

指定可以查看本部门的其他部门列表,总数不能超过200。 当hide_dept为true时,则此值生效 示例值:“123,456”

§user_permits: Option<String>

指定可以查看本部门的人员userId列表,总数不能超过200。 当hide_dept为true时,则此值生效 示例值:“user123,manager222”

§outer_dept: Option<bool>

是否限制本部门成员查看通讯录: true:开启限制。开启后本部门成员只能看到限定范围内的通讯录 false(默认值):不限制

§outer_dept_only_self: Option<bool>

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

§outer_permit_users: Option<String>

指定本部门成员可查看的通讯录用户userId列表,总数不能超过200。 当outer_dept为true时,此参数生效 示例值:“manager123,user123”

§outer_permit_depts: Option<String>

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

§create_dept_group: Option<bool>

是否创建一个关联此部门的企业群,默认为false即不创建。

§auto_approve_apply: Option<bool>

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

§order: Option<u64>

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

§source_identifier: Option<String>

部门标识字段,开发者可用该字段来唯一标识一个部门,并与钉钉外部通讯录里的部门做映射。

Trait Implementations§

Source§

impl Debug for ParamsDepartmentCreate

Source§

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

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

impl Default for ParamsDepartmentCreate

Source§

fn default() -> ParamsDepartmentCreate

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

impl<'de> Deserialize<'de> for ParamsDepartmentCreate

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 ParamsDepartmentCreate

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,