Struct tracing_layer_discord::DiscordConfig
source · pub struct DiscordConfig { /* private fields */ }
Expand description
Configuration describing how to forward tracing events to Discord.
Implementations§
source§impl DiscordConfig
impl DiscordConfig
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 Discord using configuration available in the environment.
Required env vars:
- SLACK_WEBHOOK_URL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DiscordConfig
impl RefUnwindSafe for DiscordConfig
impl Send for DiscordConfig
impl Sync for DiscordConfig
impl Unpin for DiscordConfig
impl UnwindSafe for DiscordConfig
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