pub struct ScmWebhookRequest {
pub method: String,
pub headers: HashMap<String, Vec<String>>,
pub body: String,
pub raw_body: Option<Vec<u8>>,
pub path: Option<String>,
}Expand description
Raw webhook delivery as handed to a plugin. Mirrors the TS
SCMWebhookRequest shape; headers are case-insensitive per RFC 7230 —
plugins should look them up via the helpers in this module rather than
indexing headers directly.
Fields§
§method: String§headers: HashMap<String, Vec<String>>Header name → value(s). Values may be a single string or a list (some HTTP stacks keep repeated headers as arrays).
body: String§raw_body: Option<Vec<u8>>Raw bytes for signature verification. HMAC must hash the bytes as received; UTF-8 decoding can lose information on non-ASCII payloads.
path: Option<String>Trait Implementations§
Source§impl Clone for ScmWebhookRequest
impl Clone for ScmWebhookRequest
Source§fn clone(&self) -> ScmWebhookRequest
fn clone(&self) -> ScmWebhookRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScmWebhookRequest
impl Debug for ScmWebhookRequest
Source§impl<'de> Deserialize<'de> for ScmWebhookRequest
impl<'de> Deserialize<'de> for ScmWebhookRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ScmWebhookRequest
impl PartialEq for ScmWebhookRequest
Source§impl Serialize for ScmWebhookRequest
impl Serialize for ScmWebhookRequest
impl Eq for ScmWebhookRequest
impl StructuralPartialEq for ScmWebhookRequest
Auto Trait Implementations§
impl Freeze for ScmWebhookRequest
impl RefUnwindSafe for ScmWebhookRequest
impl Send for ScmWebhookRequest
impl Sync for ScmWebhookRequest
impl Unpin for ScmWebhookRequest
impl UnsafeUnpin for ScmWebhookRequest
impl UnwindSafe for ScmWebhookRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.