pub struct ScmWebhookVerificationResult {
pub ok: bool,
pub reason: Option<String>,
pub delivery_id: Option<String>,
pub event_type: Option<String>,
}Expand description
Result of Scm::verify_webhook. ok: false with an actionable reason
is the typical failure path — the HTTP handler returns 401/403 with the
reason in logs (not the response body).
Fields§
§ok: bool§reason: Option<String>§delivery_id: Option<String>§event_type: Option<String>Trait Implementations§
Source§impl Clone for ScmWebhookVerificationResult
impl Clone for ScmWebhookVerificationResult
Source§fn clone(&self) -> ScmWebhookVerificationResult
fn clone(&self) -> ScmWebhookVerificationResult
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 ScmWebhookVerificationResult
impl Debug for ScmWebhookVerificationResult
Source§impl Default for ScmWebhookVerificationResult
impl Default for ScmWebhookVerificationResult
Source§fn default() -> ScmWebhookVerificationResult
fn default() -> ScmWebhookVerificationResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScmWebhookVerificationResult
impl<'de> Deserialize<'de> for ScmWebhookVerificationResult
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 ScmWebhookVerificationResult
impl PartialEq for ScmWebhookVerificationResult
Source§fn eq(&self, other: &ScmWebhookVerificationResult) -> bool
fn eq(&self, other: &ScmWebhookVerificationResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ScmWebhookVerificationResult
impl StructuralPartialEq for ScmWebhookVerificationResult
Auto Trait Implementations§
impl Freeze for ScmWebhookVerificationResult
impl RefUnwindSafe for ScmWebhookVerificationResult
impl Send for ScmWebhookVerificationResult
impl Sync for ScmWebhookVerificationResult
impl Unpin for ScmWebhookVerificationResult
impl UnsafeUnpin for ScmWebhookVerificationResult
impl UnwindSafe for ScmWebhookVerificationResult
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.