pub struct MT110Cheque {
pub field_21: Field21,
pub field_30: Field30,
pub field_32a: GenericCurrencyAmountField,
pub field_50a: Option<Field50>,
pub field_52a: Option<GenericBicField>,
pub field_59a: Field59,
}
Expand description
§MT110 Cheque (Repeating Sequence)
Represents a single cheque within an MT110 advice message. This structure demonstrates the enhanced architecture for handling repetitive SWIFT sequences.
§Architectural Benefits:
- Complete Validation: Each cheque validates all its fields independently
- Memory Efficiency: Only allocates fields that are present
- Type Safety: Compile-time validation of field types
- Business Logic: Clear cheque-level operations and validation
- Scalability: Easy to add new cheque types or fields
Fields§
§field_21: Field21
Cheque Number - Field 21 (Mandatory) Unique per cheque; no ‘/’ or ‘//’
field_30: Field30
Date of Issue - Field 30 (Mandatory) Format: YYMMDD. Must be a valid date
field_32a: GenericCurrencyAmountField
Amount - Field 32a (Mandatory) Options: A (6!n3!a15d) / B (3!a15d) Currency must be same for all cheques in the message
field_50a: Option<Field50>
Payer - Field 50a (Optional) Options: A, F, K. Detailed identity formats
field_52a: Option<GenericBicField>
Drawer Bank - Field 52a (Optional) Options: A, B, D. Can specify BIC or national code
field_59a: Field59
Payee - Field 59a (Mandatory) Options: No letter, F option. Must use structured address and name
Implementations§
Source§impl MT110Cheque
impl MT110Cheque
Sourcepub fn validation_rules() -> &'static str
pub fn validation_rules() -> &'static str
Get the validation rules for this message type
Trait Implementations§
Source§impl Clone for MT110Cheque
impl Clone for MT110Cheque
Source§fn clone(&self) -> MT110Cheque
fn clone(&self) -> MT110Cheque
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MT110Cheque
impl Debug for MT110Cheque
Source§impl<'de> Deserialize<'de> for MT110Cheque
impl<'de> Deserialize<'de> for MT110Cheque
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 PartialEq for MT110Cheque
impl PartialEq for MT110Cheque
Source§impl Serialize for MT110Cheque
impl Serialize for MT110Cheque
Source§impl SwiftMessageBody for MT110Cheque
impl SwiftMessageBody for MT110Cheque
Source§fn message_type() -> &'static str
fn message_type() -> &'static str
Get the message type identifier (e.g., “103”, “202”)
Source§fn from_fields(fields: HashMap<String, Vec<String>>) -> SwiftResult<Self>
fn from_fields(fields: HashMap<String, Vec<String>>) -> SwiftResult<Self>
Create from field map
Source§fn required_fields() -> Vec<&'static str>
fn required_fields() -> Vec<&'static str>
Get required field tags for this message type
Source§fn optional_fields() -> Vec<&'static str>
fn optional_fields() -> Vec<&'static str>
Get optional field tags for this message type
impl StructuralPartialEq for MT110Cheque
Auto Trait Implementations§
impl Freeze for MT110Cheque
impl RefUnwindSafe for MT110Cheque
impl Send for MT110Cheque
impl Sync for MT110Cheque
impl Unpin for MT110Cheque
impl UnwindSafe for MT110Cheque
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