Struct slack_chat_api::User[][src]

pub struct User {
Show 21 fields pub id: String, pub team_id: String, pub email: String, pub is_admin: bool, pub is_owner: bool, pub is_primary_owner: bool, pub is_restricted: bool, pub is_ultra_restricted: bool, pub is_bot: bool, pub deleted: bool, pub is_stranger: bool, pub is_app_user: bool, pub is_invited_user: bool, pub has_2fa: bool, pub name: String, pub real_name: String, pub tz: String, pub tz_label: String, pub tz_offset: i64, pub profile: UserProfile, pub locale: String,
}
Expand description

The data type for a User. FROM: https://api.slack.com/types/user

Fields

id: Stringteam_id: Stringemail: Stringis_admin: boolis_owner: boolis_primary_owner: boolis_restricted: boolis_ultra_restricted: boolis_bot: booldeleted: boolis_stranger: boolis_app_user: boolis_invited_user: boolhas_2fa: boolname: Stringreal_name: Stringtz: Stringtz_label: Stringtz_offset: i64profile: UserProfilelocale: String

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Deserialize this value from the given Serde deserializer. Read more

The name of the generated JSON Schema. Read more

Generates a JSON Schema for this type. Read more

Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more