pub struct AccountingFlow {Show 20 fields
pub flow_id: u64,
pub entry_id: u64,
pub from_account: String,
pub to_account: String,
pub amount: FixedPoint128,
pub amount_f64: f64,
pub timestamp: u64,
pub method: SolvingMethod,
pub confidence: f64,
pub from_entity: String,
pub to_entity: String,
pub currency: String,
pub source_lines: Vec<u32>,
pub from_account_class: Option<AccountClass>,
pub to_account_class: Option<AccountClass>,
pub pattern: Option<TransactionPattern>,
pub is_tax_flow: bool,
pub vat_rate: Option<f64>,
pub is_intercompany: bool,
pub confidence_factors: Vec<String>,
}Expand description
An accounting flow (directed edge in the network).
Fields§
§flow_id: u64Unique flow ID.
entry_id: u64Source journal entry ID.
from_account: StringSource account (debit account).
to_account: StringTarget account (credit account).
amount: FixedPoint128Flow amount (fixed-point).
amount_f64: f64Amount as f64 for convenience.
timestamp: u64Timestamp of the journal entry.
method: SolvingMethodSolving method used to derive this flow.
confidence: f64Confidence level (derived from method).
from_entity: StringSource entity ID.
to_entity: StringTarget entity ID.
currency: StringCurrency.
source_lines: Vec<u32>Source line numbers (for audit trail).
from_account_class: Option<AccountClass>Source account class.
to_account_class: Option<AccountClass>Target account class.
pattern: Option<TransactionPattern>Detected transaction pattern.
is_tax_flow: boolWhether this flow represents a VAT/tax component.
vat_rate: Option<f64>VAT rate if this is a tax flow.
is_intercompany: boolWhether this is an intercompany flow.
confidence_factors: Vec<String>Confidence adjustments applied.
Trait Implementations§
Source§impl Clone for AccountingFlow
impl Clone for AccountingFlow
Source§fn clone(&self) -> AccountingFlow
fn clone(&self) -> AccountingFlow
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 AccountingFlow
impl Debug for AccountingFlow
Source§impl<'de> Deserialize<'de> for AccountingFlow
impl<'de> Deserialize<'de> for AccountingFlow
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
Auto Trait Implementations§
impl Freeze for AccountingFlow
impl RefUnwindSafe for AccountingFlow
impl Send for AccountingFlow
impl Sync for AccountingFlow
impl Unpin for AccountingFlow
impl UnwindSafe for AccountingFlow
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> 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<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.