Struct stripe::Event [−][src]
pub struct Event {
pub id: EventId,
pub account: Option<Box<String>>,
pub api_version: Option<Box<String>>,
pub created: Timestamp,
pub data: NotificationEventData,
pub livemode: bool,
pub pending_webhooks: i64,
pub request: Option<Box<NotificationEventRequest>>,
pub type_: String,
}
Expand description
The resource representing a Stripe “NotificationEvent”.
For more details see https://stripe.com/docs/api/events/object
Fields
id: EventId
Unique identifier for the object.
account: Option<Box<String>>
The connected account that originated the event.
api_version: Option<Box<String>>
The Stripe API version used to render data
.
Note: This property is populated only for events on or after October 31, 2014.
created: Timestamp
Time at which the object was created.
Measured in seconds since the Unix epoch.
data: NotificationEventData
livemode: bool
Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
pending_webhooks: i64
Number of webhooks that have yet to be successfully delivered (i.e., to return a 20x response) to the URLs you’ve specified.
request: Option<Box<NotificationEventRequest>>
Information on the API request that instigated the event.
type_: String
Description of the event (e.g., invoice.created
or charge.refunded
).
Implementations
List events, going back up to 30 days.
Each event data is rendered according to Stripe API version at its creation time, specified in event object api_version
attribute (not according to your current Stripe API version or Stripe-Version
header).
Trait Implementations
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 RefUnwindSafe for Event
impl UnwindSafe for Event
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more