pub struct Slack { /* private fields */ }Available on crate feature
blocking only.Expand description
Handles sending messages to slack
Implementations§
Source§impl Slack
impl Slack
Sourcepub fn new<T: IntoUrl>(hook: T) -> Result<Slack>
pub fn new<T: IntoUrl>(hook: T) -> Result<Slack>
Construct a new instance of slack for a specific incoming url endpoint.
Sourcepub fn new_with_client<T: IntoUrl>(hook: T, client: Client) -> Result<Self>
pub fn new_with_client<T: IntoUrl>(hook: T, client: Client) -> Result<Self>
The same as Slack::new(), but with a custom reqwest::Client
This allows for configuring custom proxies, DNS resolvers, etc.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Slack
impl !RefUnwindSafe for Slack
impl Send for Slack
impl Sync for Slack
impl Unpin for Slack
impl !UnwindSafe for Slack
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