laravel-rust 0.1.0

Laravel for Rust: a full-stack Rust web framework, inspired by PHP Laravel
Documentation
//! Build Slack messages with Block Kit, and handle their buttons and menus.
//!
//! Many teams watch Slack for deploys, payments, and alerts, so a notification can post there
//! through the [`Slack`](crate::notification::Slack) channel. A [`Message`] holds blocks, such as [`Section`]s and [actions](Message::actions),
//! and a button or menu can run an [`Action`] when someone uses it:
//!
//! ```
//! use laravel::slack::{self, Button, Message, Section};
//! # #[derive(serde::Serialize, serde::Deserialize)]
//! # struct Refund { invoice: u64 }
//! # #[laravel::slack::action]
//! # impl Refund { async fn handle(self) {} }
//!
//! let message = Message::new("Invoice #42 was paid")
//!     .section(Section::new(slack::markdown!("{} paid *#42*.", slack::mention("U0123ABC"))).field("Amount", "$1,200"))
//!     .actions([
//!         Button::link("View invoice", "https://forge.test/invoices/42").primary(),
//!         Button::action("Refund", Refund { invoice: 42 }).danger().confirm("Refund $1,200?"),
//!     ]);
//! ```
//!
//! Every string that a message sends as markdown is escaped, so text from your users can't
//! mention a whole channel or add links. [`markdown!`], [`mention`], [`link`], and [`date`] build
//! the [`Markdown`] that's sent as it is. The [Slack guide] covers setting up a Slack app,
//! receiving [`interactions`], posting to other workspaces, and testing.
//!
//! [Slack guide]: https://github.com/laravel/rust-framework/blob/0.x/docs/slack.md

#[doc(hidden)]
pub use laravel_notifications::slack::{__Handle, __Registration};
#[doc(inline)]
pub use laravel_notifications::slack::{
    Action, Block, Button, Confirm, ContextElement, ConversationsSelect, Element, Elements, Image, Interaction,
    IntoMarkdown, Markdown, Message, Overflow, Route, Section, Select, UsersSelect, action, date, interactions, link,
    markdown, mention,
};