pub struct Event {
pub id: EventId,
pub account: Option<String>,
pub api_version: Option<String>,
pub created: Timestamp,
pub data: NotificationEventData,
pub livemode: bool,
pub pending_webhooks: i64,
pub request: Option<NotificationEventRequest>,
pub type_: EventType,
}
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<String>
The connected account that originates the event.
api_version: Option<String>
The Stripe API version used to render data
.
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 haven’t been successfully delivered (for example, to return a 20x response) to the URLs you specify.
request: Option<NotificationEventRequest>
Information on the API request that triggers the event.
type_: EventType
Description of the event (for example, invoice.created
or charge.refunded
).
Implementations§
source§impl Event
impl Event
sourcepub fn list(client: &Client, params: &ListEvents<'_>) -> Response<List<Event>>
pub fn list(client: &Client, params: &ListEvents<'_>) -> Response<List<Event>>
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§
source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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>,
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)