pub struct MT940 {
pub field_20: Field20,
pub field_21: Option<Field21NoOption>,
pub field_25: Field25NoOption,
pub field_28c: Field28C,
pub field_60f: Field60F,
pub statement_lines: Vec<MT940StatementLine>,
pub field_62f: Field62F,
pub field_64: Option<Field64>,
pub field_65: Option<Vec<Field65>>,
}
Expand description
MT940: Customer Statement
Account statement with transaction details for specified period. Sent from account servicing institution to account owner.
Usage: Daily statements, account reconciliation Category: Category 9 (Cash Management & Customer Status)
Fields§
§field_20: Field20
Transaction Reference Number (Field 20)
field_21: Option<Field21NoOption>
Related Reference (Field 21)
field_25: Field25NoOption
Account Identification (Field 25)
field_28c: Field28C
Statement Number/Sequence Number (Field 28C)
field_60f: Field60F
Opening Balance (Field 60F)
statement_lines: Vec<MT940StatementLine>
Statement lines (1-500 occurrences)
field_62f: Field62F
Closing Balance (Field 62F)
field_64: Option<Field64>
Available Balance (Field 64)
field_65: Option<Vec<Field65>>
Forward Available Balance (Field 65)
Implementations§
Source§impl MT940
impl MT940
Sourcepub fn parse_from_block4(block4: &str) -> Result<Self, ParseError>
pub fn parse_from_block4(block4: &str) -> Result<Self, ParseError>
Parse message from Block 4 content
Sourcepub fn validate_instance(&self) -> Result<(), ParseError>
pub fn validate_instance(&self) -> Result<(), ParseError>
Validate the message instance according to MT940 rules
Sourcepub fn validate_network_rules(
&self,
stop_on_first_error: bool,
) -> Vec<SwiftValidationError>
pub fn validate_network_rules( &self, stop_on_first_error: bool, ) -> Vec<SwiftValidationError>
Main validation method - validates all network rules Returns array of validation errors, respects stop_on_first_error flag
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>,
Source§impl SwiftMessageBody for MT940
impl SwiftMessageBody for MT940
Source§fn message_type() -> &'static str
fn message_type() -> &'static str
Source§fn parse_from_block4(block4: &str) -> Result<Self, ParseError>
fn parse_from_block4(block4: &str) -> Result<Self, ParseError>
Source§fn to_mt_string(&self) -> String
fn to_mt_string(&self) -> String
Source§fn validate_network_rules(
&self,
stop_on_first_error: bool,
) -> Vec<SwiftValidationError>
fn validate_network_rules( &self, stop_on_first_error: bool, ) -> Vec<SwiftValidationError>
impl StructuralPartialEq for MT940
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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>
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>
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