Struct RawWebhook
pub struct RawWebhook {
pub method: String,
pub query: String,
pub headers: Vec<(String, String)>,
pub body: Vec<u8>,
pub cancellation: WebhookCancellation,
pub idempotency: Option<WebhookIdempotency>,
pub reply: Sender<Result<WebhookOutcome, WebhookReject>>,
}Expand description
A raw inbound request received on /plugin/{path}.
Fields§
§method: StringHTTP method supplied by the gateway request, never by a header.
query: StringRaw query string, without the leading ?.
headers: Vec<(String, String)>Header names normalized to lowercase and their UTF-8 values.
body: Vec<u8>Exact received body bytes.
cancellation: WebhookCancellationRequest-lifetime cancellation shared with the disposable guest parser.
idempotency: Option<WebhookIdempotency>Access to the gateway’s canonical idempotency store.
reply: Sender<Result<WebhookOutcome, WebhookReject>>Outcome used to select the public HTTP response.
Auto Trait Implementations§
impl !RefUnwindSafe for RawWebhook
impl !UnwindSafe for RawWebhook
impl Freeze for RawWebhook
impl Send for RawWebhook
impl Sync for RawWebhook
impl Unpin for RawWebhook
impl UnsafeUnpin for RawWebhook
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