pub struct Field61 {
pub value_date: NaiveDate,
pub entry_date: Option<String>,
pub debit_credit_mark: String,
pub funds_code: Option<char>,
pub amount: f64,
pub transaction_type: String,
pub customer_reference: String,
pub bank_reference: Option<String>,
pub supplementary_details: Option<String>,
}
Expand description
§Field 61: Statement Line
Format: 6!n[4!n]2a[1!a]15d4!a2!a[16x][34x] (complex composite format) Validation: date_format, valid_date_range, debit_credit_indicator, amount_format, reference_format
Fields§
§value_date: NaiveDate
Value date (6!n format, YYMMDD)
entry_date: Option<String>
Optional entry date (4!n format, MMDD)
debit_credit_mark: String
Debit/Credit mark (2a format: D, C, RD, RC)
funds_code: Option<char>
Optional funds code (1!a format)
amount: f64
Amount (15d format)
transaction_type: String
Transaction type identification code (4!a format)
customer_reference: String
Customer reference (2!a format)
bank_reference: Option<String>
Optional bank reference (16x format, preceded by //)
supplementary_details: Option<String>
Optional supplementary details (34x format)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Field61
impl<'de> Deserialize<'de> for Field61
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 SwiftField for Field61
impl SwiftField for Field61
Source§fn to_swift_string(&self) -> String
fn to_swift_string(&self) -> String
Convert field back to SWIFT string format
Source§fn validate(&self) -> ValidationResult
fn validate(&self) -> ValidationResult
Validate field according to SWIFT format rules
Source§fn format_spec() -> &'static str
fn format_spec() -> &'static str
Get field format specification
impl StructuralPartialEq for Field61
Auto Trait Implementations§
impl Freeze for Field61
impl RefUnwindSafe for Field61
impl Send for Field61
impl Sync for Field61
impl Unpin for Field61
impl UnwindSafe for Field61
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