pub struct MT940 { /* private fields */ }
Expand description
MT940: Customer Statement Message
Implementations§
Source§impl MT940
impl MT940
Sourcepub fn transaction_reference(&self) -> Result<String>
pub fn transaction_reference(&self) -> Result<String>
Get transaction reference number (Field 20)
Sourcepub fn account_identification(&self) -> Result<String>
pub fn account_identification(&self) -> Result<String>
Get account identification (Field 25)
Sourcepub fn statement_number(&self) -> Result<String>
pub fn statement_number(&self) -> Result<String>
Get statement number/sequence number (Field 28C)
Sourcepub fn opening_balance(&self) -> Result<String>
pub fn opening_balance(&self) -> Result<String>
Get opening balance (Field 60F or 60M)
Sourcepub fn parse_opening_balance(&self) -> Result<(String, NaiveDate, String, f64)>
pub fn parse_opening_balance(&self) -> Result<(String, NaiveDate, String, f64)>
Parse opening balance into components
Sourcepub fn closing_balance(&self) -> Result<String>
pub fn closing_balance(&self) -> Result<String>
Get closing balance (Field 62F or 62M)
Sourcepub fn parse_closing_balance(&self) -> Result<(String, NaiveDate, String, f64)>
pub fn parse_closing_balance(&self) -> Result<(String, NaiveDate, String, f64)>
Parse closing balance into components
Sourcepub fn closing_available_balance(&self) -> Option<String>
pub fn closing_available_balance(&self) -> Option<String>
Get closing available balance (Field 64)
Sourcepub fn parse_closing_available_balance(
&self,
) -> Option<Result<(String, NaiveDate, String, f64)>>
pub fn parse_closing_available_balance( &self, ) -> Option<Result<(String, NaiveDate, String, f64)>>
Parse closing available balance into components
Sourcepub fn statement_lines(&self) -> Vec<String>
pub fn statement_lines(&self) -> Vec<String>
Get all statement lines (Field 61)
Sourcepub fn information_to_account_owner(&self) -> Vec<String>
pub fn information_to_account_owner(&self) -> Vec<String>
Get all information to account owner (Field 86)
Sourcepub fn forward_available_balance(&self) -> Option<String>
pub fn forward_available_balance(&self) -> Option<String>
Get forward available balance (Field 65) - optional
Sourcepub fn parse_statement_line(&self, line: &str) -> Result<StatementLineInfo>
pub fn parse_statement_line(&self, line: &str) -> Result<StatementLineInfo>
Parse a statement line (Field 61) into components This is a complex field with value date, entry date, debit/credit, amount, transaction type, etc.
Sourcepub fn parsed_statement_lines(&self) -> Vec<Result<StatementLineInfo>> ⓘ
pub fn parsed_statement_lines(&self) -> Vec<Result<StatementLineInfo>> ⓘ
Get statement lines with parsed information
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MT940
impl<'de> Deserialize<'de> for MT940
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
Source§impl MTMessageType for MT940
impl MTMessageType for MT940
Source§fn from_blocks(blocks: Vec<MessageBlock>) -> Result<Self>
fn from_blocks(blocks: Vec<MessageBlock>) -> Result<Self>
Create message from parsed blocks
Source§fn get_all_fields(&self) -> Vec<&Field>
fn get_all_fields(&self) -> Vec<&Field>
Get all fields
Source§fn text_fields(&self) -> &[Field]
fn text_fields(&self) -> &[Field]
Get the text block fields
Auto Trait Implementations§
impl Freeze for MT940
impl RefUnwindSafe for MT940
impl Send for MT940
impl Sync for MT940
impl Unpin for MT940
impl UnwindSafe for MT940
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