pub struct WebhookEndpoint { /* private fields */ }Implementations§
Source§impl WebhookEndpoint
impl WebhookEndpoint
pub fn add_webhook_route<T, H>(self, path: &str, handler: H) -> Self
pub async fn add_listener( self, addr: &str, ) -> Result<Self, WompiWebhookEndpointError>
pub async fn run(self) -> Result<(), WompiWebhookEndpointError>
Trait Implementations§
Source§impl Default for WebhookEndpoint
impl Default for WebhookEndpoint
Source§fn default() -> WebhookEndpoint
fn default() -> WebhookEndpoint
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for WebhookEndpoint
impl !RefUnwindSafe for WebhookEndpoint
impl Send for WebhookEndpoint
impl Sync for WebhookEndpoint
impl Unpin for WebhookEndpoint
impl !UnwindSafe for WebhookEndpoint
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