pub struct WebhookHandler { /* private fields */ }Implementations§
Source§impl WebhookHandler
impl WebhookHandler
pub fn new(config: WebhookConfig) -> Self
pub async fn handle_pull_request( &self, ctx: PrContext, ) -> Result<(), HandlerError>
pub fn parse_event( provider: ProviderKind, body: &[u8], ) -> Result<Option<PrContext>, HandlerError>
Auto Trait Implementations§
impl !RefUnwindSafe for WebhookHandler
impl !UnwindSafe for WebhookHandler
impl Freeze for WebhookHandler
impl Send for WebhookHandler
impl Sync for WebhookHandler
impl Unpin for WebhookHandler
impl UnsafeUnpin 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