pub struct CreateBillPayment {
pub supplier_id: Uuid,
pub payment_date: Option<DateTime<Utc>>,
pub payment_method: PaymentMethodAP,
pub amount: Decimal,
pub currency: Option<CurrencyCode>,
pub reference_number: Option<String>,
pub bank_account: Option<String>,
pub check_number: Option<String>,
pub memo: Option<String>,
pub allocations: Vec<PaymentAllocationInput>,
}Expand description
Input for creating a payment.
Fields§
§supplier_id: Uuid§payment_date: Option<DateTime<Utc>>§payment_method: PaymentMethodAP§amount: Decimal§currency: Option<CurrencyCode>§reference_number: Option<String>§bank_account: Option<String>§check_number: Option<String>§memo: Option<String>§allocations: Vec<PaymentAllocationInput>Trait Implementations§
Source§impl Clone for CreateBillPayment
impl Clone for CreateBillPayment
Source§fn clone(&self) -> CreateBillPayment
fn clone(&self) -> CreateBillPayment
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 CreateBillPayment
impl Debug for CreateBillPayment
Source§impl<'de> Deserialize<'de> for CreateBillPayment
impl<'de> Deserialize<'de> for CreateBillPayment
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateBillPayment, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateBillPayment, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CreateBillPayment
impl Serialize for CreateBillPayment
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 CreateBillPayment
impl RefUnwindSafe for CreateBillPayment
impl Send for CreateBillPayment
impl Sync for CreateBillPayment
impl Unpin for CreateBillPayment
impl UnsafeUnpin for CreateBillPayment
impl UnwindSafe for CreateBillPayment
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