pub struct CreditAccount {Show 15 fields
pub id: CreditId,
pub customer_id: CustomerId,
pub credit_limit: Decimal,
pub available_credit: Decimal,
pub current_balance: Decimal,
pub hold_amount: Decimal,
pub currency: CurrencyCode,
pub status: CreditAccountStatus,
pub payment_terms: Option<String>,
pub risk_rating: Option<RiskRating>,
pub last_review_date: Option<DateTime<Utc>>,
pub next_review_date: Option<DateTime<Utc>>,
pub notes: Option<String>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
Customer credit account.
Fields§
§id: CreditId§customer_id: CustomerId§credit_limit: Decimal§available_credit: Decimal§current_balance: Decimal§hold_amount: Decimal§currency: CurrencyCode§status: CreditAccountStatus§payment_terms: Option<String>§risk_rating: Option<RiskRating>§last_review_date: Option<DateTime<Utc>>§next_review_date: Option<DateTime<Utc>>§notes: Option<String>§created_at: DateTime<Utc>§updated_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for CreditAccount
impl Clone for CreditAccount
Source§fn clone(&self) -> CreditAccount
fn clone(&self) -> CreditAccount
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 CreditAccount
impl Debug for CreditAccount
Source§impl<'de> Deserialize<'de> for CreditAccount
impl<'de> Deserialize<'de> for CreditAccount
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreditAccount, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreditAccount, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CreditAccount
impl Serialize for CreditAccount
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 CreditAccount
impl RefUnwindSafe for CreditAccount
impl Send for CreditAccount
impl Sync for CreditAccount
impl Unpin for CreditAccount
impl UnsafeUnpin for CreditAccount
impl UnwindSafe for CreditAccount
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