pub struct Field32D {
pub value_date: Option<NaiveDate>,
pub currency: String,
pub amount: f64,
}
Expand description
Field 32D: Value Date, Currency Code, Amount (Debit)
Debit variant of Field 32 module. Specifies the value date, currency, and amount debited. Used in MT n90 messages (MT190, MT290, etc.) to indicate debit adjustments.
Components:
- Value date (6!n, YYMMDD format)
- Currency code (3!a, ISO 4217)
- Amount (15d, decimal with comma separator)
For complete documentation, see the Field 32 module.
Fields§
§value_date: Option<NaiveDate>
Value date when the debit becomes effective
Format: 6!n (YYMMDD) - Must be valid calendar date
currency: String
ISO 4217 three-letter currency code
Format: 3!a - Must be valid, active currency
amount: f64
Debit amount in the specified currency
Format: 15d - Up to 15 digits, comma decimal separator
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Field32D
impl<'de> Deserialize<'de> for Field32D
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 Field32D
impl SwiftField for Field32D
Source§fn to_swift_string(&self) -> String
fn to_swift_string(&self) -> String
Convert field back to SWIFT string format
Source§fn format_spec() -> &'static str
fn format_spec() -> &'static str
Get field format specification
impl StructuralPartialEq for Field32D
Auto Trait Implementations§
impl Freeze for Field32D
impl RefUnwindSafe for Field32D
impl Send for Field32D
impl Sync for Field32D
impl Unpin for Field32D
impl UnwindSafe for Field32D
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> 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