pub struct WebhookHandler {
pub active_webhooks: Arc<RwLock<HashMap<String, WebhookInfo>>>,
pub event_queue: Arc<RwLock<Vec<GitHubEvent>>>,
}Expand description
Webhookハンドラー
Fields§
§active_webhooks: Arc<RwLock<HashMap<String, WebhookInfo>>>アクティブなWebhook
event_queue: Arc<RwLock<Vec<GitHubEvent>>>イベント処理キュー
Implementations§
Source§impl WebhookHandler
impl WebhookHandler
Sourcepub async fn register_webhook(&self, webhook_info: WebhookInfo) -> Result<()>
pub async fn register_webhook(&self, webhook_info: WebhookInfo) -> Result<()>
Webhookを登録
Sourcepub async fn unregister_webhook(&self, webhook_id: &str) -> Result<()>
pub async fn unregister_webhook(&self, webhook_id: &str) -> Result<()>
Webhookを削除
Trait Implementations§
Source§impl Debug for WebhookHandler
impl Debug for WebhookHandler
Auto Trait Implementations§
impl Freeze for WebhookHandler
impl RefUnwindSafe for WebhookHandler
impl Send for WebhookHandler
impl Sync for WebhookHandler
impl Unpin for WebhookHandler
impl UnwindSafe for WebhookHandler
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