DeptDetailResponse

Struct DeptDetailResponse 

Source
pub struct DeptDetailResponse {
Show 20 fields pub dept_id: i64, pub name: String, pub parent_id: Option<i64>, pub source_identifier: Option<String>, pub create_dept_group: bool, pub auto_add_user: bool, pub auto_approve_apply: bool, pub from_union_org: Option<bool>, pub tags: Option<String>, pub order: i64, pub dept_group_chat_id: Option<String>, pub group_contain_sub_dept: bool, pub org_dept_owner: Option<String>, pub dept_manager_userid_list: Option<Vec<String>>, pub outer_dept: bool, pub outer_permit_depts: Vec<i64>, pub outer_permit_users: Vec<String>, pub hide_dept: bool, pub user_permits: Vec<String>, pub dept_permits: Vec<i64>,
}

Fields§

§dept_id: i64

部门ID

§name: String

部门名称

§parent_id: Option<i64>

父部门ID

§source_identifier: Option<String>

部门标识字段。 说明 第三方企业应用不返回该参数。

§create_dept_group: bool

是否同步创建一个关联此部门的企业群

§auto_add_user: bool

部门群已经创建后,有新人加入部门是否会自动加入该群

§auto_approve_apply: bool

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

§from_union_org: Option<bool>

部门是否来自关联组织: true:是 false:不是 说明 第三方企业应用不返回该参数

§tags: Option<String>

教育部门标签: campus:校区 period:学段 grade:年级 class:班级 说明 第三方企业应用不返回该参数。

§order: i64

在父部门中的次序值

§dept_group_chat_id: Option<String>

部门群ID

§group_contain_sub_dept: bool

部门群是否包含子部门

§org_dept_owner: Option<String>

企业群群主userId

§dept_manager_userid_list: Option<Vec<String>>

部门的主管userd列表

§outer_dept: bool

是否限制本部门成员查看通讯录: true:开启限制。开启后本部门成员只能看到指定部门/人的通讯录 false:不限制

§outer_permit_depts: Vec<i64>

配置的部门员工可见部门Id列表 说明 接口是否返回该字段,取决于企业是否设置限制本部门成员查看通讯录,即接口返回的outer_dept值 限制本部门成员查看通讯录(即outer_dept为true):outer_permit_depts表示设置的只能看到指定部门/人的部门Id列表 说明 例如,企业开启了限制本部门成员查看通讯录,本部门成员设置了只能看到指定的2个部门、2位员工的通讯录,其中测试部门1的部门Id为1, 测试部门2的部门Id为2。调用本接口,获取到设置的部门outer_permit_depts的值为[1,2]。不返回员工列表,即不返回员工小钉1、员工小钉2的信息 未限制本部门成员查看通讯录(即outer_dept为false):调用接口不返回outer_permit_depts字段

§outer_permit_users: Vec<String>

配置的部门员工可见员工userId列表

§hide_dept: bool

是否开启隐藏本部门: true:开启隐藏本部门。可以设置隐藏范围,如设置向所有人和部门隐藏,或者允许指定部门/人可见。 false:关闭隐藏本部门,即部门在公司通讯录显示

§user_permits: Vec<String>

隐藏部门的员工userId列表。

§dept_permits: Vec<i64>

隐藏部门的部门Id列表

Trait Implementations§

Source§

impl Debug for DeptDetailResponse

Source§

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

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

impl Default for DeptDetailResponse

Source§

fn default() -> DeptDetailResponse

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

impl<'de> Deserialize<'de> for DeptDetailResponse

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 DeptDetailResponse

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,