pub struct EventData {
pub object: EventObject,
pub previous_attributes: Option<Value>,
}
Fields§
§object: EventObject
Object containing the API resource relevant to the event.
For example, an invoice.created
event will have a full invoice object as the value of the object key.
previous_attributes: Option<Value>
Object containing the names of the updated attributes and their values prior to the event (only included in events of type *.updated
).
If an array attribute has any updated elements, this object contains the entire array. In Stripe API versions 2017-04-06 or earlier, an updated array attribute in this object includes only the updated array elements.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventData
impl RefUnwindSafe for EventData
impl Send for EventData
impl Sync for EventData
impl Unpin for EventData
impl UnwindSafe for EventData
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