pub enum ParsedSwiftMessage {
MT103(Box<SwiftMessage<MT103>>),
MT202(Box<SwiftMessage<MT202>>),
}
Expand description
Enumeration of all supported SWIFT message types for automatic parsing
Variants§
MT103(Box<SwiftMessage<MT103>>)
MT202(Box<SwiftMessage<MT202>>)
Implementations§
Source§impl ParsedSwiftMessage
impl ParsedSwiftMessage
Sourcepub fn message_type(&self) -> &'static str
pub fn message_type(&self) -> &'static str
Get the message type as a string
Sourcepub fn as_mt103(&self) -> Option<&SwiftMessage<MT103>>
pub fn as_mt103(&self) -> Option<&SwiftMessage<MT103>>
Convert to a specific message type if it matches
pub fn as_mt202(&self) -> Option<&SwiftMessage<MT202>>
Sourcepub fn into_mt103(self) -> Option<SwiftMessage<MT103>>
pub fn into_mt103(self) -> Option<SwiftMessage<MT103>>
Convert into a specific message type if it matches
pub fn into_mt202(self) -> Option<SwiftMessage<MT202>>
Trait Implementations§
Source§impl Clone for ParsedSwiftMessage
impl Clone for ParsedSwiftMessage
Source§fn clone(&self) -> ParsedSwiftMessage
fn clone(&self) -> ParsedSwiftMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ParsedSwiftMessage
impl Debug for ParsedSwiftMessage
Auto Trait Implementations§
impl Freeze for ParsedSwiftMessage
impl RefUnwindSafe for ParsedSwiftMessage
impl Send for ParsedSwiftMessage
impl Sync for ParsedSwiftMessage
impl Unpin for ParsedSwiftMessage
impl UnwindSafe for ParsedSwiftMessage
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