pub struct CreatePaymentInput {
pub invoice_id: String,
pub amount_cents: i64,
pub reference: String,
pub paid_at: Option<String>,
}Expand description
Input for creating a payment.
Fields§
§invoice_id: StringUnique identifier assigned to the invoice.
amount_cents: i64The payment amount in cents.
reference: StringReference for the payment.
paid_at: Option<String>The date the payment was made.
Implementations§
Trait Implementations§
Source§impl Clone for CreatePaymentInput
impl Clone for CreatePaymentInput
Source§fn clone(&self) -> CreatePaymentInput
fn clone(&self) -> CreatePaymentInput
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 CreatePaymentInput
impl Debug for CreatePaymentInput
Source§impl Default for CreatePaymentInput
impl Default for CreatePaymentInput
Source§fn default() -> CreatePaymentInput
fn default() -> CreatePaymentInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreatePaymentInput
impl<'de> Deserialize<'de> for CreatePaymentInput
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 Freeze for CreatePaymentInput
impl RefUnwindSafe for CreatePaymentInput
impl Send for CreatePaymentInput
impl Sync for CreatePaymentInput
impl Unpin for CreatePaymentInput
impl UnwindSafe for CreatePaymentInput
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