pub enum TemplateEngine {
Custom,
Handlebars,
DejaVu,
Jinja2,
Liquid,
}Expand description
模板引擎类型
Variants§
Implementations§
Source§impl TemplateEngine
impl TemplateEngine
Sourcepub fn display_name(&self) -> &'static str
pub fn display_name(&self) -> &'static str
获取模板引擎的显示名称
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
获取模板引擎的描述
Sourcepub fn default_extension(&self) -> &'static str
pub fn default_extension(&self) -> &'static str
获取默认的文件扩展名
Trait Implementations§
Source§impl Clone for TemplateEngine
impl Clone for TemplateEngine
Source§fn clone(&self) -> TemplateEngine
fn clone(&self) -> TemplateEngine
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TemplateEngine
impl Debug for TemplateEngine
Source§impl Hash for TemplateEngine
impl Hash for TemplateEngine
Source§impl PartialEq for TemplateEngine
impl PartialEq for TemplateEngine
Source§impl Serialize for TemplateEngine
impl Serialize for TemplateEngine
impl Copy for TemplateEngine
impl Eq for TemplateEngine
impl StructuralPartialEq for TemplateEngine
Auto Trait Implementations§
impl Freeze for TemplateEngine
impl RefUnwindSafe for TemplateEngine
impl Send for TemplateEngine
impl Sync for TemplateEngine
impl Unpin for TemplateEngine
impl UnsafeUnpin for TemplateEngine
impl UnwindSafe for TemplateEngine
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