pub struct EventData {
pub id: String,
pub reference: Option<String>,
}
Expand description
The data about the event to send to the API.
For the invoice
type, you need to pass the invoice id and offline reference: {id: invoice_id, reference: offline_reference}
.
For the transaction type, you can pass the transaction id:
{id: transaction_id}`
Fields§
§id: String
Transaction id
reference: Option<String>
Transaction offline reference. Only required for invoice
type.
Trait Implementations§
source§impl<'de> Deserialize<'de> for EventData
impl<'de> Deserialize<'de> for EventData
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
Auto Trait Implementations§
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