pub struct BankStatementLine {
pub line_id: String,
pub bank_account: String,
pub statement_date: NaiveDate,
pub value_date: NaiveDate,
pub amount: Decimal,
pub currency: String,
pub bank_reference: String,
pub counterparty_name: Option<String>,
pub counterparty_account: Option<String>,
pub payment_reference: Option<String>,
pub is_matched: bool,
pub matched_receipt: Option<String>,
}Expand description
Bank statement line for automatic matching.
Fields§
§line_id: StringStatement line ID.
bank_account: StringBank account.
statement_date: NaiveDateStatement date.
value_date: NaiveDateValue date.
amount: DecimalAmount (positive = receipt, negative = payment).
currency: StringCurrency.
bank_reference: StringBank reference.
counterparty_name: Option<String>Payer/payee name.
counterparty_account: Option<String>Payer/payee account.
payment_reference: Option<String>Payment reference/remittance info.
is_matched: boolIs matched.
matched_receipt: Option<String>Matched receipt number.
Implementations§
Source§impl BankStatementLine
impl BankStatementLine
Sourcepub fn is_receipt(&self) -> bool
pub fn is_receipt(&self) -> bool
Checks if this is an incoming payment.
Sourcepub fn match_to_receipt(&mut self, receipt_number: String)
pub fn match_to_receipt(&mut self, receipt_number: String)
Marks as matched.
Trait Implementations§
Source§impl Clone for BankStatementLine
impl Clone for BankStatementLine
Source§fn clone(&self) -> BankStatementLine
fn clone(&self) -> BankStatementLine
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 BankStatementLine
impl Debug for BankStatementLine
Source§impl<'de> Deserialize<'de> for BankStatementLine
impl<'de> Deserialize<'de> for BankStatementLine
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 BankStatementLine
impl RefUnwindSafe for BankStatementLine
impl Send for BankStatementLine
impl Sync for BankStatementLine
impl Unpin for BankStatementLine
impl UnwindSafe for BankStatementLine
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