pub struct NotificationEventData {
pub object: Value,
pub previous_attributes: Option<Value>,
}Expand description
Fields§
§object: ValueObject 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§
Source§impl Clone for NotificationEventData
impl Clone for NotificationEventData
Source§fn clone(&self) -> NotificationEventData
fn clone(&self) -> NotificationEventData
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 NotificationEventData
impl Debug for NotificationEventData
Source§impl Default for NotificationEventData
impl Default for NotificationEventData
Source§fn default() -> NotificationEventData
fn default() -> NotificationEventData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NotificationEventData
impl<'de> Deserialize<'de> for NotificationEventData
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
Source§impl Display for NotificationEventData
impl Display for NotificationEventData
Auto Trait Implementations§
impl Freeze for NotificationEventData
impl RefUnwindSafe for NotificationEventData
impl Send for NotificationEventData
impl Sync for NotificationEventData
impl Unpin for NotificationEventData
impl UnwindSafe for NotificationEventData
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