use swift_iso15022::mt::{MessageTrait, Mt103}; fn main() { let input = "\ :20:TEST-IBAN001\r\n\ :13C:/SNDTIME/0701+0200\r\n\ :23B:CRED\r\n\ :32A:060804EUR18001,01\r\n\ :33B:EUR18001,01\r\n\ :50K:/KUNDE WO FOO FOO\r\n\ SYMMACH. FOO OREOKASTRO-DIAVATA\r\n\ GR-57008 FOO\r\n\ GREECE\r\n\ :52A://TAGRPRNKGRAAXXX052/S/20115\r\n\ PRNKGRAAXXX\r\n\ :57A:GENODE51LOS\r\n\ :59:/DE66593922000000045500\r\n\ FOO DER VOLKS-RAIFFEISENBANK\r\n\ RAIFFEISENPLATZ\r\n\ D-66787 WADGASSEN-HOSTENBACH\r\n\ GERMANY\r\n\ :70:TEST IBAN 01P DE\r\n\ IBAN FOO\r\n\ :71A:SHA"; let input_parsed = Mt103::parse_str_swift(input).unwrap(); assert_eq!(input_parsed.sender_reference.0, "TEST-IBAN001"); }