pub struct DimensionalExport {
pub fact: Vec<FactRow>,
pub drcr: Vec<(u32, String)>,
pub accounts: Vec<AccountDimRow>,
pub sources: Vec<(u32, String)>,
pub preparers: Vec<(u32, String)>,
pub companies: Vec<(u32, String)>,
pub currencies: Vec<(u32, String)>,
pub doc_types: Vec<(u32, String)>,
pub dates: Vec<(u32, String)>,
}Expand description
The full dimensional export: fact table + dimension lookups + COA map.
Fields§
§fact: Vec<FactRow>§drcr: Vec<(u32, String)>Debit/Credit dimension (fixed: 1 = Debit, 2 = Credit).
accounts: Vec<AccountDimRow>§sources: Vec<(u32, String)>§preparers: Vec<(u32, String)>§companies: Vec<(u32, String)>§currencies: Vec<(u32, String)>§doc_types: Vec<(u32, String)>§dates: Vec<(u32, String)>Implementations§
Source§impl DimensionalExport
impl DimensionalExport
Sourcepub fn from_entries(entries: &[JournalEntry]) -> Self
pub fn from_entries(entries: &[JournalEntry]) -> Self
Build the dimensional export from journal entries.
Sourcepub fn account_dim_csv(&self) -> String
pub fn account_dim_csv(&self) -> String
CSV for the chart-of-accounts dimension.
Trait Implementations§
Source§impl Clone for DimensionalExport
impl Clone for DimensionalExport
Source§fn clone(&self) -> DimensionalExport
fn clone(&self) -> DimensionalExport
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 moreAuto Trait Implementations§
impl Freeze for DimensionalExport
impl RefUnwindSafe for DimensionalExport
impl Send for DimensionalExport
impl Sync for DimensionalExport
impl Unpin for DimensionalExport
impl UnsafeUnpin for DimensionalExport
impl UnwindSafe for DimensionalExport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.