pub struct RecordInvoicePayment {
pub amount: Decimal,
pub payment_id: Option<Uuid>,
pub payment_method: Option<String>,
pub reference: Option<String>,
pub notes: Option<String>,
}Expand description
Input for recording a payment on an invoice
Fields§
§amount: DecimalAmount being paid
payment_id: Option<Uuid>Payment ID (if linked to a payment record)
payment_method: Option<String>Payment method description
reference: Option<String>Payment reference/check number
notes: Option<String>Notes
Trait Implementations§
Source§impl Clone for RecordInvoicePayment
impl Clone for RecordInvoicePayment
Source§fn clone(&self) -> RecordInvoicePayment
fn clone(&self) -> RecordInvoicePayment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RecordInvoicePayment
impl Debug for RecordInvoicePayment
Source§impl Default for RecordInvoicePayment
impl Default for RecordInvoicePayment
Source§fn default() -> RecordInvoicePayment
fn default() -> RecordInvoicePayment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RecordInvoicePayment
impl<'de> Deserialize<'de> for RecordInvoicePayment
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RecordInvoicePayment, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RecordInvoicePayment, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for RecordInvoicePayment
impl Serialize for RecordInvoicePayment
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for RecordInvoicePayment
impl RefUnwindSafe for RecordInvoicePayment
impl Send for RecordInvoicePayment
impl Sync for RecordInvoicePayment
impl Unpin for RecordInvoicePayment
impl UnsafeUnpin for RecordInvoicePayment
impl UnwindSafe for RecordInvoicePayment
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