Struct TemplateEntry
pub struct TemplateEntry {
pub group: &'static str,
pub name: &'static str,
pub code: &'static str,
pub make: fn() -> AnyTemplate,
}Expand description
One registry row: the template’s product group, accessor name, code, and
constructor (wrapping its AnyTemplate).
Fields§
§group: &'static strProduct group ("irs", …).
name: &'static strAccessor name (e.g. "usd_sofr").
code: &'static strResolution code (e.g. "USD-SOFR-OIS").
make: fn() -> AnyTemplateConstructs the template, wrapped in its AnyTemplate.
Auto Trait Implementations§
impl Freeze for TemplateEntry
impl RefUnwindSafe for TemplateEntry
impl Send for TemplateEntry
impl Sync for TemplateEntry
impl Unpin for TemplateEntry
impl UnsafeUnpin for TemplateEntry
impl UnwindSafe for TemplateEntry
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