pub struct TransferMatch {
pub from_group: usize,
pub from_index: usize,
pub to_group: usize,
pub to_index: usize,
pub amount: Decimal,
pub currency: String,
pub confidence: f64,
}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.
to_group: usizeIndex of the destination transaction (credit side) in the second group.
to_index: usizeIndex within that group’s directives.
amount: DecimalThe matched amount (absolute value).
currency: StringThe matched currency.
confidence: f64Confidence score (0.0 to 1.0).
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 · 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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more