Struct slack_chat_api::UserInvite[][src]

pub struct UserInvite {
    pub channel_ids: Vec<String>,
    pub email: String,
    pub team_id: String,
    pub custom_message: String,
    pub is_restricted: bool,
    pub is_ultra_restricted: bool,
    pub real_name: String,
    pub resend: bool,
}
Expand description

The data type for an invited user. FROM: https://api.slack.com/methods/admin.users.invite

Fields

channel_ids: Vec<String>

A comma-separated list of channel_ids for this user to join. At least one channel is required.

email: String

The email address of the person to invite.

team_id: String

The ID of the workspace.

custom_message: String

An optional message to send to the user in the invite email.

is_restricted: bool

Is this user a multi-channel guest user? (default: false)

is_ultra_restricted: bool

Is this user a single channel guest user? (default: false)

real_name: String

Full name of the user.

resend: bool

Allow this invite to be resent in the future if a user has not signed up yet. (default: false)

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