pub struct StripeEvent {
pub id: String,
pub event_type: String,
pub created: u64,
pub data: Value,
}Expand description
Minimal projection of a Stripe webhook event.
Apps usually want event_type to dispatch on, then data for the actual
object payload. Skipping the full Stripe schema keeps this plugin compile-
independent of any one Stripe API version.
Fields§
§id: String§event_type: String§created: u64§data: ValueImplementations§
Trait Implementations§
Source§impl Clone for StripeEvent
impl Clone for StripeEvent
Source§fn clone(&self) -> StripeEvent
fn clone(&self) -> StripeEvent
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 StripeEvent
impl Debug for StripeEvent
Source§impl<'de> Deserialize<'de> for StripeEvent
impl<'de> Deserialize<'de> for StripeEvent
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
Auto Trait Implementations§
impl Freeze for StripeEvent
impl RefUnwindSafe for StripeEvent
impl Send for StripeEvent
impl Sync for StripeEvent
impl Unpin for StripeEvent
impl UnsafeUnpin for StripeEvent
impl UnwindSafe for StripeEvent
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