pub struct WebhookEvent { /* private fields */ }Expand description
Verified webhook delivery metadata injected into Hyperlane Context under ATTR_WEBHOOK_EVENT.
Implementations§
Source§impl WebhookEvent
Context extraction helper for WebhookEvent.
impl WebhookEvent
Context extraction helper for WebhookEvent.
Sourcepub fn from_context(ctx: &Context) -> Option<Self>
pub fn from_context(ctx: &Context) -> Option<Self>
Retrieves the verified WebhookEvent injected by WebhookHook from ctx.
§Arguments
&Context- Active Hyperlane request context.
§Returns
Option<Self>- Verified event metadata when present.
Source§impl WebhookEvent
impl WebhookEvent
pub fn get_endpoint_prefix(&self) -> &String
pub fn get_mut_endpoint_prefix(&mut self) -> &mut String
pub fn set_endpoint_prefix(&mut self, val: String) -> &mut Self
pub fn get_secret_id(&self) -> &String
pub fn get_mut_secret_id(&mut self) -> &mut String
pub fn set_secret_id(&mut self, val: String) -> &mut Self
pub fn get_timestamp(&self) -> Option<u64>
pub fn try_get_timestamp(&self) -> Option<u64>
pub fn get_mut_timestamp(&mut self) -> &mut Option<u64>
pub fn set_timestamp(&mut self, val: Option<u64>) -> &mut Self
pub fn get_delivery_id(&self) -> Option<String>
pub fn try_get_delivery_id(&self) -> Option<String>
pub fn get_mut_delivery_id(&mut self) -> &mut Option<String>
pub fn set_delivery_id(&mut self, val: Option<String>) -> &mut Self
pub fn get_body_len(&self) -> usize
pub fn get_mut_body_len(&mut self) -> &mut usize
pub fn set_body_len(&mut self, val: usize) -> &mut Self
pub fn get_verified(&self) -> bool
pub fn get_mut_verified(&mut self) -> &mut bool
pub fn set_verified(&mut self, val: bool) -> &mut Self
Trait Implementations§
Source§impl Clone for WebhookEvent
impl Clone for WebhookEvent
Source§impl Debug for WebhookEvent
impl Debug for WebhookEvent
impl Eq for WebhookEvent
Source§impl PartialEq for WebhookEvent
impl PartialEq for WebhookEvent
impl StructuralPartialEq for WebhookEvent
Auto Trait Implementations§
impl Forget for WebhookEvent
impl Freeze for WebhookEvent
impl Move for WebhookEvent
impl RefUnwindSafe for WebhookEvent
impl Send for WebhookEventwhere
RawVecInner: Send,
impl Sync for WebhookEventwhere
RawVecInner: Sync,
impl Unpin for WebhookEvent
impl UnsafeUnpin for WebhookEvent
impl UnwindSafe for WebhookEventwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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.