1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// crates/hookburn-slack/src/lib.rs
//! Slack webhook client for Hookburn.
//!
//! This crate provides a client for sending messages to Slack via incoming webhooks.
//! It implements the `WebhookSender` trait and can be used directly or through
//! the unified `hookburn` crate.
//!
//! # Example
//!
//! ```rust,no_run
//! use hookburn_slack::{SlackClient, SlackMessage};
//!
//! #[tokio::main]
//! async fn main() -> Result<(), hookburn_slack::SlackError> {
//! let client = SlackClient::new("https://hooks.slack.com/services/T/B/X")?;
//!
//! let message = SlackMessage::builder()
//! .text("Hello from Hookburn!")
//! .build()?;
//!
//! client.send(&message).await
//! }
//! ```
/// HTTP client with retry support and timeout handling.
/// Common error types for the hookburn ecosystem.
/// Service-agnostic message types and conversion traits.
/// Service metadata and builder traits for service creation.
pub use ;
pub use SlackError;
pub use ;
pub use ;
/// Register the Slack service with the global registry.
///
/// This function is called by the `hookburn` crate when the `slack` feature is enabled.
/// It returns a `SlackService` that implements the `ServiceBuilder` trait.
///
/// # Example
///
/// ```rust,no_run
/// use hookburn_slack::register_service;
/// use hookburn_core::WebhookRegistry;
///
/// let mut registry = WebhookRegistry::new();
/// registry.register(register_service());
/// ```