pub struct ModuleTemplateDefinition {
pub id: ModuleTemplateId,
pub label: &'static str,
pub description: &'static str,
pub function_prefix: &'static str,
pub explanation: &'static [&'static str],
}Expand description
Static, fully-baked definition of a module-scaffold template (catalog entry).
Fields§
§id: ModuleTemplateIdModule template identifier this definition describes.
label: &'static strHuman-readable display name.
description: &'static strOne-line summary of what the module scaffolds.
function_prefix: &'static strPrefix applied to generated function names.
explanation: &'static [&'static str]Lines may contain {nm} which is substituted with the normalized module name.
Auto Trait Implementations§
impl Freeze for ModuleTemplateDefinition
impl RefUnwindSafe for ModuleTemplateDefinition
impl Send for ModuleTemplateDefinition
impl Sync for ModuleTemplateDefinition
impl Unpin for ModuleTemplateDefinition
impl UnsafeUnpin for ModuleTemplateDefinition
impl UnwindSafe for ModuleTemplateDefinition
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