pub struct Users {
    pub client: Client,
}

Fields

client: Client

Implementations

This function performs a GET to the /users.conversations endpoint.

List conversations the calling user may access.

FROM: https://api.slack.com/methods/users.conversations

Parameters:

  • token: &str – Authentication token. Requires scope: conversations:read.
  • user: &str – Browse conversations by a specific user ID’s membership. Non-public channels are restricted to those where the calling user shares membership.
  • types: &str – Mix and match channel types by providing a comma-separated list of any combination of public_channel, private_channel, mpim, im.
  • exclude_archived: bool – Set to true to exclude archived channels from the list.
  • limit: i64 – The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the list hasn’t been reached. Must be an integer no larger than 1000.
  • cursor: &str – Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request’s response_metadata. Default value fetches the first “page” of the collection. See pagination for more detail.

This function performs a POST to the /users.deletePhoto endpoint.

Delete the user profile photo

FROM: https://api.slack.com/methods/users.deletePhoto

This function performs a GET to the /users.getPresence endpoint.

Gets user presence information.

FROM: https://api.slack.com/methods/users.getPresence

Parameters:

  • token: &str – Authentication token. Requires scope: users:read.
  • user: &str – User to get presence info on. Defaults to the authed user.

This function performs a GET to the /users.identity endpoint.

Get a user’s identity.

FROM: https://api.slack.com/methods/users.identity

Parameters:

  • token: &str – Authentication token. Requires scope: identity.basic.

This function performs a GET to the /users.identity endpoint.

As opposed to identity, this function returns all the pages of the request at once.

Get a user’s identity.

FROM: https://api.slack.com/methods/users.identity

This function performs a GET to the /users.info endpoint.

Gets information about a user.

FROM: https://api.slack.com/methods/users.info

Parameters:

  • token: &str – Authentication token. Requires scope: users:read.
  • include_locale: bool – Set this to true to receive the locale for this user. Defaults to false.
  • user: &str – User to get info on.

This function performs a GET to the /users.list endpoint.

Lists all users in a Slack team.

FROM: https://api.slack.com/methods/users.list

Parameters:

  • token: &str – Authentication token. Requires scope: users:read.
  • limit: i64 – The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the users list hasn’t been reached. Providing no limit value will result in Slack attempting to deliver you the entire result set. If the collection is too large you may experience limit_required or HTTP 500 errors.
  • cursor: &str – Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request’s response_metadata. Default value fetches the first “page” of the collection. See pagination for more detail.
  • include_locale: bool – Set this to true to receive the locale for users. Defaults to false.

This function performs a GET to the /users.lookupByEmail endpoint.

Find a user with an email address.

FROM: https://api.slack.com/methods/users.lookupByEmail

Parameters:

  • token: &str – Authentication token. Requires scope: users:read.email.
  • email: &str – An email address belonging to a user in the workspace.

This function performs a POST to the /users.setActive endpoint.

Marked a user as active. Deprecated and non-functional.

FROM: https://api.slack.com/methods/users.setActive

Parameters:

  • token: &str – Authentication token. Requires scope: users:write.

This function performs a POST to the /users.setPhoto endpoint.

Set the user profile photo

FROM: https://api.slack.com/methods/users.setPhoto

This function performs a POST to the /users.setPresence endpoint.

Manually sets user presence.

FROM: https://api.slack.com/methods/users.setPresence

Parameters:

  • token: &str – Authentication token. Requires scope: users:write.

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

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

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

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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