pub struct PaymentAllocation {
pub id: Uuid,
pub payment_id: Uuid,
pub bill_id: Uuid,
pub amount: Decimal,
pub created_at: DateTime<Utc>,
}Expand description
Allocation of a payment to specific bills.
Fields§
§id: Uuid§payment_id: Uuid§bill_id: Uuid§amount: Decimal§created_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for PaymentAllocation
impl Clone for PaymentAllocation
Source§fn clone(&self) -> PaymentAllocation
fn clone(&self) -> PaymentAllocation
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 PaymentAllocation
impl Debug for PaymentAllocation
Source§impl<'de> Deserialize<'de> for PaymentAllocation
impl<'de> Deserialize<'de> for PaymentAllocation
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PaymentAllocation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PaymentAllocation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PaymentAllocation
impl Serialize for PaymentAllocation
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 PaymentAllocation
impl RefUnwindSafe for PaymentAllocation
impl Send for PaymentAllocation
impl Sync for PaymentAllocation
impl Unpin for PaymentAllocation
impl UnsafeUnpin for PaymentAllocation
impl UnwindSafe for PaymentAllocation
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