pub struct TemplateConfig { /* private fields */ }Expand description
Configuration for template generation
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 Forget for TemplateConfig
impl Freeze for TemplateConfig
impl Move for TemplateConfig
impl RefUnwindSafe for TemplateConfig
impl Send for TemplateConfigwhere
RawVecInner: Send,
impl Sync for TemplateConfigwhere
RawVecInner: Sync,
impl Unpin for TemplateConfig
impl UnsafeUnpin for TemplateConfig
impl UnwindSafe for TemplateConfigwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more