Crate slack_chat_api[][src]

Expand description

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

The data type for an API response.

Action block in Slack.

A bot command to be run and sent back to Slack.

A channel.

A formatted message to send to Slack.

A formatted message response from Slack.

Input block in Slack.

Input block element in Slack.

A channel join response.

A channel list response.

A Slack message block.

A message attachment in Slack.

A message attachment field in Slack.

A Slack message block.

Message block accessory in Slack.

Message block text in Slack.

A message to be sent in Slack.

A modal to send to Slack.

Response metadata.

Select input option in Slack.

Entrypoint for interacting with the Slack API.

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

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

Enums

Block options in Slack.

Input type in Slack.

A message block type in Slack.

A message response type in Slack.

Message type in Slack.

A modal type in Slack.