pub struct Webhooks { /* private fields */ }Implementations§
Source§impl Webhooks
impl Webhooks
pub fn new( service: Arc<Service>, allow_private: bool, secret: Option<String>, ) -> Arc<Self> ⓘ
pub async fn create( self: &Arc<Self>, address: String, url: &str, timeout: Duration, ) -> Result<String, String>
pub fn list(&self) -> Vec<Hook>
pub fn cancel(&self, id: &str) -> bool
pub fn shutdown(&self)
Auto Trait Implementations§
impl !Freeze for Webhooks
impl !RefUnwindSafe for Webhooks
impl !UnwindSafe for Webhooks
impl Forget for Webhooks
impl Move for Webhooks
impl Send for Webhooks
impl Sync for Webhooks
impl Unpin for Webhooks
impl UnsafeUnpin for Webhooks
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