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
Individual transaction entry in account statements (MT 940).
Format: 6!n[4!n]2a[1!a]15d1!a3!c[16x][//16x][34x]
Constraints: D/C mark must be D, C, RD, or RC
Example:
:61:231225D1234,56NTRFREF123456
Fields§
§value_date: NaiveDate
Value date (YYMMDD)
entry_date: Option<String>
Entry date (MMDD, optional)
debit_credit_mark: String
Debit/Credit mark (D, C, RD, or RC)
funds_code: Option<char>
Funds code (optional)
amount: f64
Transaction amount
transaction_type: String
Transaction type code (4 chars)
customer_reference: String
Customer reference (max 16 chars)
bank_reference: Option<String>
Bank reference (max 16 chars, optional)
supplementary_details: Option<String>
Supplementary details (max 34 chars, optional)
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 parse(input: &str) -> Result<Self>where
Self: Sized,
fn parse(input: &str) -> Result<Self>where
Self: Sized,
Parse field from SWIFT format (without
:TAG:
prefix)Source§fn to_swift_string(&self) -> String
fn to_swift_string(&self) -> String
Convert to SWIFT format (includes
:TAG:
prefix)Source§fn parse_with_variant(
value: &str,
_variant: Option<&str>,
_field_tag: Option<&str>,
) -> Result<Self>where
Self: Sized,
fn parse_with_variant(
value: &str,
_variant: Option<&str>,
_field_tag: Option<&str>,
) -> Result<Self>where
Self: Sized,
Parse field with variant (e.g., 50A, 50K) for enum fields
Source§fn get_variant_tag(&self) -> Option<&'static str>
fn get_variant_tag(&self) -> Option<&'static str>
Get variant tag (e.g., “A”, “K”) for enum fields, None for simple fields
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
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>
Converts
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>
Converts
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