pub trait MessageFactory: Debug + Send {
    // Required methods
    fn get_supported_begin_strings(&self) -> Vec<String>;
    fn create(
        &self,
        begin_string: &str,
        msg_type: &str
    ) -> Result<Message, MessageFactoryError>;
    fn create_group(
        &self,
        begin_string: &str,
        msg_type: &str,
        group_counter_tag: Tag
    ) -> Option<Group>;
}

Required Methods§

source

fn get_supported_begin_strings(&self) -> Vec<String>

source

fn create( &self, begin_string: &str, msg_type: &str ) -> Result<Message, MessageFactoryError>

source

fn create_group( &self, begin_string: &str, msg_type: &str, group_counter_tag: Tag ) -> Option<Group>

Implementors§