pub struct SlackProvider {
pub webhook_url: String,
/* private fields */
}Fields§
§webhook_url: StringImplementations§
Source§impl SlackProvider
impl SlackProvider
pub fn new(webhook_url: String) -> Self
Sourcepub fn with_templates(self, templates: Option<Templates>) -> Self
pub fn with_templates(self, templates: Option<Templates>) -> Self
Uses templates for the parts they set; see crate::template.
Trait Implementations§
Source§impl Provider for SlackProvider
impl Provider for SlackProvider
fn name(&self) -> &'static str
Source§fn preview(&self, signal: &Signal) -> Option<Value>
fn preview(&self, signal: &Signal) -> Option<Value>
What
send would deliver for signal, without sending it, for
checking templates (signal preview). None when the provider
can’t show it.fn send<'life0, 'life1, 'async_trait>(
&'life0 self,
signal: &'life1 Signal,
) -> Pin<Box<dyn Future<Output = Result<(), SignalError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl !Freeze for SlackProvider
impl !RefUnwindSafe for SlackProvider
impl !UnwindSafe for SlackProvider
impl Send for SlackProvider
impl Sync for SlackProvider
impl Unpin for SlackProvider
impl UnsafeUnpin for SlackProvider
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