pub struct TemplateConfig {
pub template_type: TemplateType,
pub component_name: String,
pub model_sub_type: Option<ModelSubType>,
pub base_directory: String,
}Expand description
Configuration for template generation
Fields§
§template_type: TemplateTypeType of template component to generate
component_name: StringName of the component
model_sub_type: Option<ModelSubType>Model subtype (only used when template_type is Model)
base_directory: StringBase directory for generation (default: ./application)
Implementations§
Source§impl TemplateConfig
impl TemplateConfig
Sourcepub fn new(
template_type: TemplateType,
component_name: String,
model_sub_type: Option<ModelSubType>,
) -> Self
pub fn new( template_type: TemplateType, component_name: String, model_sub_type: Option<ModelSubType>, ) -> Self
Trait Implementations§
Source§impl Clone for TemplateConfig
impl Clone for TemplateConfig
Source§fn clone(&self) -> TemplateConfig
fn clone(&self) -> TemplateConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TemplateConfig
impl RefUnwindSafe for TemplateConfig
impl Send for TemplateConfig
impl Sync for TemplateConfig
impl Unpin for TemplateConfig
impl UnsafeUnpin for TemplateConfig
impl UnwindSafe for TemplateConfig
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