pub struct Slack {
pub hook: Url,
}
Expand description
Send a Slack message
Documentation
Needs to be compiled with feature http-sync
or http-async
Usage TLDR
- Create app
- Enable Incoming Webhooks
- Use the https://hooks.slack.com/… URL
Environment Variables
SLACK_HOOK
Fields§
§hook: Url
Implementations§
Trait Implementations§
source§impl PartialEq for Slack
impl PartialEq for Slack
impl Eq for Slack
impl StructuralEq for Slack
impl StructuralPartialEq for Slack
Auto Trait Implementations§
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
§impl<T> Chain<T> for T
impl<T> Chain<T> for T
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more