Crate sfr_server

Crate sfr_server 

Source
Expand description

§sfr-server: The server implementation for a Slack App.

The sfr-server provides server implementation powered by axum. The user can create a Slack App just to implement the handler traits.

sfr-server is the parts of slack-framework-rs. See slack-framework-rs for details.

Re-exports§

pub use tokio;

Structs§

Config
The configuration for a server.
HttpClient
An asynchronous Client to make Requests with.
Server
The server type.
SlashCommandResponse
The response for Slack Slash Command.
StaticPathConfig
The configuration to serve static files.

Enums§

OauthRedirectResponse
The response for OAuth redirect.
ResponseError
The type to respond a HTTP status.

Traits§

HomeHandlerTrait
The trait representing the interface that returns home page.
OauthHandlerTrait
The trait representing the interface that treats about OAuth.
SlashCommandHandlerTrait
The trait representing the interface that acts as a slash command.

Functions§

init_logger
Initializes the logger.