pub struct WebhookProvider {
pub url: String,
/* private fields */
}Fields§
§url: StringImplementations§
Source§impl WebhookProvider
impl WebhookProvider
pub fn new(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 WebhookProvider
impl Provider for WebhookProvider
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 WebhookProvider
impl !RefUnwindSafe for WebhookProvider
impl !UnwindSafe for WebhookProvider
impl Send for WebhookProvider
impl Sync for WebhookProvider
impl Unpin for WebhookProvider
impl UnsafeUnpin for WebhookProvider
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