ParamsUpdateUser

Struct ParamsUpdateUser 

Source
pub struct ParamsUpdateUser {
Show 23 fields pub user_id: String, pub new_user_id: Option<String>, pub name: Option<String>, pub alias: Option<String>, pub mobile: Option<String>, pub department: Option<Vec<u64>>, pub order: Option<Vec<u64>>, pub position: Option<String>, pub gender: Option<String>, pub email: Option<String>, pub biz_mail: Option<String>, pub telephone: Option<String>, pub is_leader_in_dept: Option<Vec<u64>>, pub direct_leader: Option<String>, pub avatar_mediaid: Option<String>, pub enable: Option<u8>, pub extattr: Option<ExtAttributes>, pub to_invite: Option<bool>, pub external_profile: Option<ExternalProfile>, pub external_position: Option<String>, pub nickname: Option<String>, pub address: Option<String>, pub main_department: Option<u64>,
}

Fields§

§user_id: String

成员UserID。对应管理端的帐号,企业内必须唯一。长度为1~64个字节。只能由数字、字母和“_-@.”四种字符组成,且第一个字符必须是数字或字母。系统进行唯一性检查时会忽略大小写。

§new_user_id: Option<String>

如果userid由系统自动生成,则仅允许修改一次。新值可由new_userid字段指定

§name: Option<String>

成员名称。长度为1~64个utf8字符

§alias: Option<String>

成员别名。长度1~64个utf8字符

§mobile: Option<String>

手机号码。企业内必须唯一。若成员已激活企业微信,则需成员自行修改(此情况下该参数被忽略,但不会报错)

§department: Option<Vec<u64>>

成员所属部门id列表,不超过100个

§order: Option<Vec<u64>>

部门内的排序值,默认为0,成员次序以创建时间从小到大排列。个数必须和参数department的个数一致,数值越大排序越前面。有效的值范围是[0, 2^32)

§position: Option<String>

职务信息。长度为0~128个字符

§gender: Option<String>

性别。1表示男性,2表示女性

§email: Option<String>

邮箱。长度不超过64个字节,且为有效的email格式。企业内必须唯一。若是绑定了腾讯企业邮箱的企业微信,则需要在腾讯企业邮箱中修改邮箱(此情况下该参数被忽略,但不会报错)

§biz_mail: Option<String>

邮箱。企业邮箱。仅对开通企业邮箱的企业有效。长度6~64个字节,且为有效的企业邮箱格式。企业内必须唯一。 仅2022年4月25日以前创建且企业邮箱为系统自动生成的成员可修改一次

§telephone: Option<String>

座机。32字节以内,由纯数字、“-”、“+”或“,”组成。

§is_leader_in_dept: Option<Vec<u64>>

个数必须和参数department的个数一致,表示在所在的部门内是否为部门负责人。1表示为部门负责人,0表示非部门负责人。在审批(自建、第三方)等应用里可以用来标识上级审批人

§direct_leader: Option<String>

直属上级UserID,设置范围为企业内成员,可以设置最多5个上级

§avatar_mediaid: Option<String>

成员头像的mediaid,通过素材管理接口上传图片获得的mediaid

§enable: Option<u8>

启用/禁用成员。1表示启用成员,0表示禁用成员

§extattr: Option<ExtAttributes>

自定义字段。自定义字段需要先在WEB管理端添加,见扩展属性添加方法,否则忽略未知属性的赋值。

§to_invite: Option<bool>

是否邀请该成员使用企业微信(将通过微信服务通知或短信或邮件下发邀请,每天自动下发一次,最多持续3个工作日),默认值为true。

§external_profile: Option<ExternalProfile>

成员对外属性,字段详情见对外属性

§external_position: Option<String>

对外职务,如果设置了该值,则以此作为对外展示的职务,否则以position来展示。长度12个汉字内

§nickname: Option<String>

视频号名字(设置后,成员将对外展示该视频号)。须从企业绑定到企业微信的视频号中选择,可在“我的企业”页中查看绑定的视频号

§address: Option<String>

地址。长度最大128个字符

§main_department: Option<u64>

主部门

Implementations§

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,