pub struct TemplateRegistry { /* private fields */ }
Expand description
Registry for fix templates
Implementations§
Source§impl TemplateRegistry
impl TemplateRegistry
Sourcepub fn register_template(&mut self, template: FixTemplate)
pub fn register_template(&mut self, template: FixTemplate)
Sourcepub fn get_template(&self, name: &str) -> Option<&FixTemplate>
pub fn get_template(&self, name: &str) -> Option<&FixTemplate>
Sourcepub fn get_templates_for_category(
&self,
category: ErrorCategory,
) -> Vec<&FixTemplate>
pub fn get_templates_for_category( &self, category: ErrorCategory, ) -> Vec<&FixTemplate>
Sourcepub fn get_templates_for_error_code(
&self,
error_code: &str,
) -> Vec<&FixTemplate>
pub fn get_templates_for_error_code( &self, error_code: &str, ) -> Vec<&FixTemplate>
Trait Implementations§
Source§impl Debug for TemplateRegistry
impl Debug for TemplateRegistry
Source§impl Default for TemplateRegistry
impl Default for TemplateRegistry
Source§fn default() -> TemplateRegistry
fn default() -> TemplateRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TemplateRegistry
impl RefUnwindSafe for TemplateRegistry
impl Send for TemplateRegistry
impl Sync for TemplateRegistry
impl Unpin for TemplateRegistry
impl UnwindSafe for TemplateRegistry
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