Struct MT103

Source
pub struct MT103 {
Show 23 fields pub field_20: Field20, pub field_23b: Field23B, pub field_32a: Field32A, pub field_50: Field50, pub field_59: Field59, pub field_71a: Field71A, pub field_13c: Option<Field13C>, pub field_23e: Option<Field23E>, pub field_26t: Option<Field26T>, pub field_33b: Option<Field33B>, pub field_36: Option<Field36>, pub field_51a: Option<Field51A>, pub field_52a: Option<Field52>, pub field_53a: Option<Field53>, pub field_54a: Option<Field54>, pub field_55a: Option<Field55>, pub field_56a: Option<Field56>, pub field_57a: Option<Field57>, pub field_70: Option<Field70>, pub field_71f: Option<Field71F>, pub field_71g: Option<Field71G>, pub field_72: Option<Field72>, pub field_77b: Option<Field77B>,
}
Expand description

MT103: Single Customer Credit Transfer

Fields§

§field_20: Field20§field_23b: Field23B§field_32a: Field32A§field_50: Field50§field_59: Field59§field_71a: Field71A§field_13c: Option<Field13C>§field_23e: Option<Field23E>§field_26t: Option<Field26T>§field_33b: Option<Field33B>§field_36: Option<Field36>§field_51a: Option<Field51A>§field_52a: Option<Field52>§field_53a: Option<Field53>§field_54a: Option<Field54>§field_55a: Option<Field55>§field_56a: Option<Field56>§field_57a: Option<Field57>§field_70: Option<Field70>§field_71f: Option<Field71F>§field_71g: Option<Field71G>§field_72: Option<Field72>§field_77b: Option<Field77B>

Implementations§

Source§

impl MT103

Source

pub fn from_swift_message(message: SwiftMessage) -> Result<Self>

Create MT103 from generic SwiftMessage

Source

pub fn from_swift_message_preserving_headers( message: SwiftMessage, ) -> Result<(Self, (Option<BasicHeader>, Option<ApplicationHeader>, Option<UserHeader>, Option<Trailer>))>

Create MT103 from generic SwiftMessage, preserving headers for later use

Source

pub fn to_swift_message(&self) -> SwiftMessage

Convert back to generic SwiftMessage

Source

pub fn to_swift_message_with_headers( &self, basic_header: Option<BasicHeader>, application_header: Option<ApplicationHeader>, user_header: Option<UserHeader>, trailer_block: Option<Trailer>, ) -> SwiftMessage

Convert back to generic SwiftMessage with headers

Source

pub fn validate_business_rules(&self) -> Result<ValidationReport>

Validate MT103 specific business rules using JSONLogic rules

§Arguments
  • rules_file_path - Path to the JSON file containing MT103 validation rules
§Returns
  • ValidationReport containing detailed validation results

Trait Implementations§

Source§

impl Clone for MT103

Source§

fn clone(&self) -> MT103

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MT103

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for MT103

Source§

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 FromJson<MT103> for MT103

Source§

fn from_json(json: &Value) -> Result<MT103>

Parse from JSON Value
Source§

fn from_json_string(json_str: &str) -> Result<T>

Parse from JSON string
Source§

impl Serialize for MT103

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl ToJson for MT103

Source§

fn to_json(&self) -> Result<Value>

Convert to JSON Value
Source§

fn to_json_string(&self) -> Result<String>

Convert to JSON string
Source§

fn to_json_compact(&self) -> Result<String>

Convert to compact JSON string

Auto Trait Implementations§

§

impl Freeze for MT103

§

impl RefUnwindSafe for MT103

§

impl Send for MT103

§

impl Sync for MT103

§

impl Unpin for MT103

§

impl UnwindSafe for MT103

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,