Struct tracing_layer_slack::SlackConfig
source · pub struct SlackConfig { /* private fields */ }
Expand description
Configuration describing how to forward tracing events to Slack.
Implementations§
source§impl SlackConfig
impl SlackConfig
pub fn new(webhook_url: String) -> Self
sourcepub fn new_from_env() -> Self
pub fn new_from_env() -> Self
Create a new config for forwarding messages to Slack using configuration available in the environment.
Required env vars:
- SLACK_WEBHOOK_URL
Trait Implementations§
source§impl Config for SlackConfig
impl Config for SlackConfig
fn webhook_url(&self) -> &str
fn new_from_env() -> Selfwhere
Self: Sized,
Auto Trait Implementations§
impl Freeze for SlackConfig
impl RefUnwindSafe for SlackConfig
impl Send for SlackConfig
impl Sync for SlackConfig
impl Unpin for SlackConfig
impl UnwindSafe for SlackConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more