#[repr(u8)]pub enum SolvingMethod {
MethodA = 0,
MethodB = 1,
MethodC = 2,
MethodD = 3,
MethodE = 4,
Pending = 255,
}Expand description
The transformation method used to convert a journal entry to flows. Based on Ivertowski et al. (2024) methodology.
Variants§
MethodA = 0
Method A: 1-to-1 mapping (60.68% of entries) Single debit → single credit, confidence = 1.0
MethodB = 1
Method B: n-to-n bijective mapping (16.63% of entries) Equal debit/credit counts, match by amount Confidence = 1.0 (distinct) or 1/n (duplicates)
MethodC = 2
Method C: n-to-m partition (11% of entries) Unequal distribution, subset sum or VAT disaggregation Confidence varies by match quality
MethodD = 3
Method D: Higher aggregate (11% of entries) Account class level matching when detail fails Confidence = 1.0 at aggregate level
MethodE = 4
Method E: Decomposition with shadow bookings (0.76% of entries) Last resort - greedy allocation Confidence = 1/decomposition_steps
Pending = 255
Not yet processed
Implementations§
Source§impl SolvingMethod
impl SolvingMethod
Sourcepub fn expected_ratio(&self) -> f64
pub fn expected_ratio(&self) -> f64
Expected percentage of entries using this method.
Sourcepub fn base_confidence(&self) -> f32
pub fn base_confidence(&self) -> f32
Base confidence for this method.
Sourcepub fn display_name(&self) -> &'static str
pub fn display_name(&self) -> &'static str
Display name for UI.
Trait Implementations§
Source§impl Archive for SolvingMethod
impl Archive for SolvingMethod
Source§type Archived = ArchivedSolvingMethod
type Archived = ArchivedSolvingMethod
Source§type Resolver = SolvingMethodResolver
type Resolver = SolvingMethodResolver
Source§impl Clone for SolvingMethod
impl Clone for SolvingMethod
Source§fn clone(&self) -> SolvingMethod
fn clone(&self) -> SolvingMethod
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SolvingMethod
impl Debug for SolvingMethod
Source§impl<__D: Fallible + ?Sized> Deserialize<SolvingMethod, __D> for Archived<SolvingMethod>
impl<__D: Fallible + ?Sized> Deserialize<SolvingMethod, __D> for Archived<SolvingMethod>
Source§fn deserialize(
&self,
deserializer: &mut __D,
) -> Result<SolvingMethod, __D::Error>
fn deserialize( &self, deserializer: &mut __D, ) -> Result<SolvingMethod, __D::Error>
Source§impl Hash for SolvingMethod
impl Hash for SolvingMethod
Source§impl PartialEq for SolvingMethod
impl PartialEq for SolvingMethod
impl Copy for SolvingMethod
impl Eq for SolvingMethod
impl StructuralPartialEq for SolvingMethod
Auto Trait Implementations§
impl Freeze for SolvingMethod
impl RefUnwindSafe for SolvingMethod
impl Send for SolvingMethod
impl Sync for SolvingMethod
impl Unpin for SolvingMethod
impl UnwindSafe for SolvingMethod
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Source§impl<T> ArchiveUnsized for Twhere
T: Archive,
impl<T> ArchiveUnsized for Twhere
T: Archive,
Source§type Archived = <T as Archive>::Archived
type Archived = <T as Archive>::Archived
Archive, it may be unsized. Read moreSource§type MetadataResolver = ()
type MetadataResolver = ()
Source§unsafe fn resolve_metadata(
&self,
_: usize,
_: <T as ArchiveUnsized>::MetadataResolver,
_: *mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata,
)
unsafe fn resolve_metadata( &self, _: usize, _: <T as ArchiveUnsized>::MetadataResolver, _: *mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata, )
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
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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>
Source§impl<T, S> SerializeUnsized<S> for T
impl<T, S> SerializeUnsized<S> for T
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>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.