pub struct TransferMatch {Show 14 fields
pub from_group: usize,
pub from_index: usize,
pub from_account: Option<String>,
pub from_filename: Option<String>,
pub from_lineno: Option<u32>,
pub to_group: usize,
pub to_index: usize,
pub to_account: Option<String>,
pub to_filename: Option<String>,
pub to_lineno: Option<u32>,
pub amount: Decimal,
pub currency: String,
pub confidence: f64,
pub date: String,
}Expand description
A detected transfer pair.
Fields§
§from_group: usizeIndex of the source transaction (debit side) in the first group.
from_index: usizeIndex within that group’s directives.
from_account: Option<String>Account name of the debit side (if available).
from_filename: Option<String>Source file of the debit side (if available).
from_lineno: Option<u32>Source line number of the debit side (if available).
to_group: usizeIndex of the destination transaction (credit side) in the second group.
to_index: usizeIndex within that group’s directives.
to_account: Option<String>Account name of the credit side (if available).
to_filename: Option<String>Source file of the credit side (if available).
to_lineno: Option<u32>Source line number of the credit side (if available).
amount: DecimalThe matched amount (absolute value).
currency: StringThe matched currency.
confidence: f64Confidence score (0.0 to 1.0).
date: StringDate of the debit (from) side, in YYYY-MM-DD form.
Trait Implementations§
Source§impl Clone for TransferMatch
impl Clone for TransferMatch
Source§fn clone(&self) -> TransferMatch
fn clone(&self) -> TransferMatch
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 TransferMatch
impl RefUnwindSafe for TransferMatch
impl Send for TransferMatch
impl Sync for TransferMatch
impl Unpin for TransferMatch
impl UnsafeUnpin for TransferMatch
impl UnwindSafe for TransferMatch
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<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>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.