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
Source§impl TemplateConfig
impl TemplateConfig
pub fn get_template_type(&self) -> &TemplateType
pub fn get_mut_template_type(&mut self) -> &mut TemplateType
pub fn set_template_type(&mut self, val: TemplateType) -> &mut Self
pub fn get_component_name(&self) -> &String
pub fn get_mut_component_name(&mut self) -> &mut String
pub fn set_component_name(&mut self, val: String) -> &mut Self
pub fn get_model_sub_type(&self) -> ModelSubType
pub fn try_get_model_sub_type(&self) -> &Option<ModelSubType>
pub fn get_mut_model_sub_type(&mut self) -> &mut Option<ModelSubType>
pub fn set_model_sub_type(&mut self, val: Option<ModelSubType>) -> &mut Self
pub fn get_base_directory(&self) -> &String
pub fn get_mut_base_directory(&mut self) -> &mut String
pub fn set_base_directory(&mut self, val: String) -> &mut Self
Trait Implementations§
Source§impl Clone for TemplateConfig
impl Clone for TemplateConfig
Auto 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