pub struct WebhookPayload {
pub method: String,
pub path: String,
pub body: String,
pub headers: Vec<(String, String)>,
}Expand description
Represents an incoming HTTP request delivered to a webhook endpoint.
Fields§
§method: StringHTTP method (e.g. "POST").
path: StringURL path of the request.
body: StringRaw request body as a UTF-8 string.
headers: Vec<(String, String)>Request headers as (name, value) pairs. Header names should be
lower-cased for case-insensitive comparison.
Implementations§
Trait Implementations§
Source§impl Clone for WebhookPayload
impl Clone for WebhookPayload
Source§fn clone(&self) -> WebhookPayload
fn clone(&self) -> WebhookPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WebhookPayload
impl RefUnwindSafe for WebhookPayload
impl Send for WebhookPayload
impl Sync for WebhookPayload
impl Unpin for WebhookPayload
impl UnsafeUnpin for WebhookPayload
impl UnwindSafe for WebhookPayload
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