Struct slack_hook::Slack [−][src]
pub struct Slack { /* fields omitted */ }
Handles sending messages to slack
Methods
impl Slack
[src]
impl Slack
pub fn new<T: TryInto<Url, Err = Error>>(hook: T) -> Result<Slack>
[src]
pub fn new<T: TryInto<Url, Err = Error>>(hook: T) -> Result<Slack>
Construct a new instance of slack for a specific incoming url endpoint.
pub fn send(&self, payload: &Payload) -> Result<()>
[src]
pub fn send(&self, payload: &Payload) -> Result<()>
Send payload to slack service
Trait Implementations
impl Debug for Slack
[src]
impl Debug for Slack
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Slack
[src]
impl Clone for Slack