pub enum TransactionPattern {
Show 15 variants
SimpleSale,
SaleWithVat,
SimplePurchase,
PurchaseWithVat,
Payment,
Receipt,
Payroll,
Depreciation,
Accrual,
AccrualReversal,
Transfer,
Intercompany,
CostAllocation,
Adjustment,
Unknown,
}Expand description
Common accounting transaction patterns.
Variants§
SimpleSale
Simple sale: DR Asset, CR Revenue.
SaleWithVat
Sale with VAT: DR Asset, CR Revenue, CR VAT Payable.
SimplePurchase
Simple purchase: DR Expense/Asset, CR Asset/Liability.
PurchaseWithVat
Purchase with VAT: DR Expense, DR VAT Receivable, CR Payable.
Payment
Payment: DR Liability, CR Asset.
Receipt
Receipt: DR Asset, CR Asset (AR).
Payroll
Payroll: DR Expense, CR Multiple Liabilities.
Depreciation
Depreciation: DR Expense, CR Contra Asset.
Accrual
Accrual: DR Expense, CR Accrued Liability.
AccrualReversal
Reversal: DR Liability, CR Expense.
Transfer
Transfer: DR Asset, CR Asset.
Intercompany
Intercompany: Cross-entity transaction.
CostAllocation
Allocation: One account to multiple cost centers.
Adjustment
Journal adjustment.
Unknown
Unknown pattern.
Implementations§
Source§impl TransactionPattern
impl TransactionPattern
Sourcepub fn confidence_boost(&self) -> f64
pub fn confidence_boost(&self) -> f64
Get confidence boost for this pattern match.
Trait Implementations§
Source§impl Clone for TransactionPattern
impl Clone for TransactionPattern
Source§fn clone(&self) -> TransactionPattern
fn clone(&self) -> TransactionPattern
Returns a duplicate of the value. Read more
1.0.0 · 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 TransactionPattern
impl Debug for TransactionPattern
Source§impl<'de> Deserialize<'de> for TransactionPattern
impl<'de> Deserialize<'de> for TransactionPattern
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for TransactionPattern
impl Hash for TransactionPattern
Source§impl PartialEq for TransactionPattern
impl PartialEq for TransactionPattern
Source§impl Serialize for TransactionPattern
impl Serialize for TransactionPattern
impl Copy for TransactionPattern
impl Eq for TransactionPattern
impl StructuralPartialEq for TransactionPattern
Auto Trait Implementations§
impl Freeze for TransactionPattern
impl RefUnwindSafe for TransactionPattern
impl Send for TransactionPattern
impl Sync for TransactionPattern
impl Unpin for TransactionPattern
impl UnwindSafe for TransactionPattern
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.