pub struct WebhookRegistry { /* private fields */ }Expand description
Webhook registry for managing webhook endpoints.
Implementations§
Source§impl WebhookRegistry
impl WebhookRegistry
Sourcepub async fn register(&self, trigger: WebhookTrigger) -> String
pub async fn register(&self, trigger: WebhookTrigger) -> String
Register a webhook trigger.
Sourcepub async fn unregister(&self, trigger_id: &str) -> Option<WebhookTrigger>
pub async fn unregister(&self, trigger_id: &str) -> Option<WebhookTrigger>
Unregister a webhook trigger.
Sourcepub async fn get(&self, trigger_id: &str) -> Option<WebhookTrigger>
pub async fn get(&self, trigger_id: &str) -> Option<WebhookTrigger>
Get a webhook trigger by ID.
Sourcepub async fn list(&self) -> Vec<WebhookTrigger>
pub async fn list(&self) -> Vec<WebhookTrigger>
List all webhook triggers.
Sourcepub async fn find_by_workflow(&self, workflow_id: &str) -> Vec<WebhookTrigger>
pub async fn find_by_workflow(&self, workflow_id: &str) -> Vec<WebhookTrigger>
Find triggers for a workflow.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for WebhookRegistry
impl !UnwindSafe for WebhookRegistry
impl Freeze for WebhookRegistry
impl Send for WebhookRegistry
impl Sync for WebhookRegistry
impl Unpin for WebhookRegistry
impl UnsafeUnpin for WebhookRegistry
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