pub struct InvoiceEventData {
pub type: String,
pub id: String,
pub deleted: Option<bool>,
pub object: Option<InvoiceEventObject>,
}Expand description
This is a model struct for InvoiceEventData type.
Fields§
§type: StringThe type of the event data object. The value is “invoice”. Max Length 50
id: StringThe ID of the affected invoice.
deleted: Option<bool>Indicates that the invoice was deleted. Only applies to “invoice.deleted” event.
object: Option<InvoiceEventObject>An object containing the associated invoice, present if not “invoice.deleted” event.
Trait Implementations§
Source§impl Clone for InvoiceEventData
impl Clone for InvoiceEventData
Source§fn clone(&self) -> InvoiceEventData
fn clone(&self) -> InvoiceEventData
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 InvoiceEventData
impl Debug for InvoiceEventData
Source§impl Default for InvoiceEventData
impl Default for InvoiceEventData
Source§fn default() -> InvoiceEventData
fn default() -> InvoiceEventData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InvoiceEventData
impl<'de> Deserialize<'de> for InvoiceEventData
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 PartialEq for InvoiceEventData
impl PartialEq for InvoiceEventData
Source§impl Serialize for InvoiceEventData
impl Serialize for InvoiceEventData
impl Eq for InvoiceEventData
impl StructuralPartialEq for InvoiceEventData
Auto Trait Implementations§
impl Freeze for InvoiceEventData
impl RefUnwindSafe for InvoiceEventData
impl Send for InvoiceEventData
impl Sync for InvoiceEventData
impl Unpin for InvoiceEventData
impl UnwindSafe for InvoiceEventData
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