pub struct JournalEntryLine {Show 13 fields
pub id: Uuid,
pub journal_entry_id: Uuid,
pub line_number: i32,
pub account_id: Uuid,
pub account_number: Option<String>,
pub account_name: Option<String>,
pub description: Option<String>,
pub debit_amount: Decimal,
pub credit_amount: Decimal,
pub currency: CurrencyCode,
pub reference_type: Option<String>,
pub reference_id: Option<Uuid>,
pub created_at: DateTime<Utc>,
}Expand description
Journal Entry line (detail)
Fields§
§id: UuidUnique identifier for this line.
journal_entry_id: UuidParent journal entry.
line_number: i32Sequence number within the entry (1-based).
account_id: UuidGL account being debited or credited.
account_number: Option<String>Denormalized account number for reporting convenience.
account_name: Option<String>Denormalized account name for reporting convenience.
description: Option<String>Optional line-level narrative.
debit_amount: DecimalDebit amount; exactly one of debit_amount or credit_amount must be non-zero.
credit_amount: DecimalCredit amount; exactly one of debit_amount or credit_amount must be non-zero.
currency: CurrencyCodeCurrency of the amounts on this line.
reference_type: Option<String>Entity type of a related sub-ledger record (e.g. "invoice_line").
reference_id: Option<Uuid>Identifier of the related sub-ledger record.
created_at: DateTime<Utc>Timestamp of line creation.
Implementations§
Trait Implementations§
Source§impl Clone for JournalEntryLine
impl Clone for JournalEntryLine
Source§fn clone(&self) -> JournalEntryLine
fn clone(&self) -> JournalEntryLine
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 JournalEntryLine
impl Debug for JournalEntryLine
Source§impl<'de> Deserialize<'de> for JournalEntryLine
impl<'de> Deserialize<'de> for JournalEntryLine
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<JournalEntryLine, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<JournalEntryLine, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for JournalEntryLine
impl Serialize for JournalEntryLine
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 JournalEntryLine
impl RefUnwindSafe for JournalEntryLine
impl Send for JournalEntryLine
impl Sync for JournalEntryLine
impl Unpin for JournalEntryLine
impl UnsafeUnpin for JournalEntryLine
impl UnwindSafe for JournalEntryLine
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