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_: 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<String>
The connected account that originated the event.
api_version: Option<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<NotificationEventRequest>
Information on the API request that instigated the event.
type_: String
Description of the event (e.g., invoice.created
or charge.refunded
).
Implementations
sourceimpl 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
sourceimpl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
sourcefn 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 Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more