[−][src]Crate slack_chat_api
A rust library for interacting with the Slack API.
For more information, the Slack API is documented at api.slack.com.
Example:
use serde::{Deserialize, Serialize}; use slack_chat_api::Slack; async fn get_users() { // Initialize the Slack client. let slack = Slack::new_from_env(); // List the users. let users = slack.list_users().await.unwrap(); // Iterate over the users. for user in users { println!("{:?}", user); } }
Structs
| APIError | Error type returned by our library. |
| APIResponse | The data type for an API response. |
| BotCommand | A bot command to be run and sent back to Slack. |
| FormattedMessage | A formatted message to send to Slack. |
| MessageAttachment | A message attachment in Slack. |
| MessageAttachmentField | A message attachment field in Slack. |
| MessageBlock | A Slack message block. |
| MessageBlockAccessory | Message block accessory in Slack. |
| MessageBlockText | Message block text in Slack. |
| MessageResponse | A message to be sent in Slack. |
| Slack | Entrypoint for interacting with the Slack API. |
| UpdateUserProfileRequest | |
| User | The data type for a User. FROM: https://api.slack.com/types/user |
| UserInvite | The data type for an invited user. FROM: https://api.slack.com/methods/admin.users.invite |
| UserProfile | |
| UserProfileFields |
Enums
| MessageBlockType | A message block type in Slack. |
| MessageResponseType | A message response type in Slack. |
| MessageType | Message type in Slack. |