#[non_exhaustive]pub struct ForgeEvent {
pub delivery_id: Option<String>,
pub kind: ForgeEventKind,
}Expand description
A verified, translated webhook delivery.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.delivery_id: Option<String>The forge’s delivery id, for de-duplication. Webhook signatures carry no timestamp, so a replayed delivery verifies; dropping repeats by id is the core’s job.
kind: ForgeEventKindWhat happened.
Implementations§
Source§impl ForgeEvent
impl ForgeEvent
Sourcepub fn new(delivery_id: Option<String>, kind: ForgeEventKind) -> Self
pub fn new(delivery_id: Option<String>, kind: ForgeEventKind) -> Self
An event.
Trait Implementations§
Source§impl Clone for ForgeEvent
impl Clone for ForgeEvent
Source§impl Debug for ForgeEvent
impl Debug for ForgeEvent
Source§impl<'de> Deserialize<'de> for ForgeEvent
impl<'de> Deserialize<'de> for ForgeEvent
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
impl Eq for ForgeEvent
Source§impl PartialEq for ForgeEvent
impl PartialEq for ForgeEvent
Source§impl Serialize for ForgeEvent
impl Serialize for ForgeEvent
impl StructuralPartialEq for ForgeEvent
Auto Trait Implementations§
impl Freeze for ForgeEvent
impl RefUnwindSafe for ForgeEvent
impl Send for ForgeEvent
impl Sync for ForgeEvent
impl Unpin for ForgeEvent
impl UnsafeUnpin for ForgeEvent
impl UnwindSafe for ForgeEvent
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