[][src]Struct nature_demo_common::OrderAccount

pub struct OrderAccount {
    pub receivable: u32,
    pub total_paid: u32,
    pub last_paid: u32,
    pub reason: OrderAccountReason,
    pub diff: i32,
}

Fields

receivable: u32total_paid: u32

can not be over the receivable, the extra money would be record to the field diff design in this way can hold each pay which is over

last_paid: u32reason: OrderAccountReason

record the reason for account change

diff: i32

positive: over paid, negative : debt

Trait Implementations

impl Clone for OrderAccount[src]

impl Debug for OrderAccount[src]

impl Default for OrderAccount[src]

impl<'de> Deserialize<'de> for OrderAccount[src]

impl Eq for OrderAccount[src]

impl PartialEq<OrderAccount> for OrderAccount[src]

impl Serialize for OrderAccount[src]

impl StructuralEq for OrderAccount[src]

impl StructuralPartialEq for OrderAccount[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.