pub struct WebhookRequest {
pub method: String,
pub path: String,
pub headers: Vec<(String, String)>,
pub body: Vec<u8>,
}Expand description
An HTTP request delivered to a webhook.
Fields§
§method: StringUpper-case method (POST).
path: StringPath relative to the handler’s mount point (usually empty).
headers: Vec<(String, String)>Headers with lower-case names.
body: Vec<u8>Raw body.
Implementations§
Trait Implementations§
Source§impl Clone for WebhookRequest
impl Clone for WebhookRequest
Source§impl Debug for WebhookRequest
impl Debug for WebhookRequest
impl Eq for WebhookRequest
Source§impl PartialEq for WebhookRequest
impl PartialEq for WebhookRequest
impl StructuralPartialEq for WebhookRequest
Auto Trait Implementations§
impl Freeze for WebhookRequest
impl RefUnwindSafe for WebhookRequest
impl Send for WebhookRequest
impl Sync for WebhookRequest
impl Unpin for WebhookRequest
impl UnsafeUnpin for WebhookRequest
impl UnwindSafe for WebhookRequest
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