pub struct WizardTemplateDefinition {
pub id: WizardTemplateId,
pub label: &'static str,
pub description: &'static str,
pub libs: &'static [&'static str],
pub features: Option<WizardFeatureFlags>,
pub prj_conf_extras: &'static [&'static str],
pub feature_files: &'static [FeatureFileSpec],
pub body_line1: &'static str,
pub body_line2: &'static str,
pub explanation: &'static [&'static str],
}Expand description
Static, fully-baked definition of a project-wizard template (catalog entry).
Fields§
§id: WizardTemplateIdTemplate identifier this definition describes.
label: &'static strHuman-readable display name.
description: &'static strOne-line summary of what the template scaffolds.
libs: &'static [&'static str]SDK libraries the template depends on.
features: Option<WizardFeatureFlags>Feature flags to emit, or None when the template needs none.
prj_conf_extras: &'static [&'static str]Extra prj.conf lines appended verbatim.
feature_files: &'static [FeatureFileSpec]Feature C files generated alongside main.
body_line1: &'static strFirst line emitted in the generated main body.
body_line2: &'static strSecond line emitted in the generated main body.
explanation: &'static [&'static str]Explanation lines surfaced to the user after scaffolding.
Auto Trait Implementations§
impl Freeze for WizardTemplateDefinition
impl RefUnwindSafe for WizardTemplateDefinition
impl Send for WizardTemplateDefinition
impl Sync for WizardTemplateDefinition
impl Unpin for WizardTemplateDefinition
impl UnsafeUnpin for WizardTemplateDefinition
impl UnwindSafe for WizardTemplateDefinition
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