pub struct MTParser { /* private fields */ }
Expand description
Main parser for SWIFT MT messages
Implementations§
Source§impl MTParser
impl MTParser
pub fn new() -> Result<Self>
Sourcepub fn parse_blocks(&self, input: &str) -> Result<Vec<MessageBlock>>
pub fn parse_blocks(&self, input: &str) -> Result<Vec<MessageBlock>>
Parse message blocks from input
Sourcepub fn extract_message_type(&self, blocks: &[MessageBlock]) -> Result<String>
pub fn extract_message_type(&self, blocks: &[MessageBlock]) -> Result<String>
Extract message type from blocks
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MTParser
impl RefUnwindSafe for MTParser
impl Send for MTParser
impl Sync for MTParser
impl Unpin for MTParser
impl UnwindSafe for MTParser
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