pub struct AutoPlate { /* private fields */ }Expand description
Auto plate engine that outputs context as JSON
Implementations§
Trait Implementations§
Source§impl PlateEngine for AutoPlate
impl PlateEngine for AutoPlate
Source§fn register_filter(
&mut self,
name: &str,
func: fn(&State<'_, '_>, Value, Kwargs) -> Result<Value, Error>,
)
fn register_filter( &mut self, name: &str, func: fn(&State<'_, '_>, Value, Kwargs) -> Result<Value, Error>, )
Register a filter with the auto plate (ignored for JSON output)
Source§fn compose(
&mut self,
context: HashMap<String, QuillValue>,
) -> Result<String, TemplateError>
fn compose( &mut self, context: HashMap<String, QuillValue>, ) -> Result<String, TemplateError>
Compose context into JSON output
Auto Trait Implementations§
impl Freeze for AutoPlate
impl RefUnwindSafe for AutoPlate
impl Send for AutoPlate
impl Sync for AutoPlate
impl Unpin for AutoPlate
impl UnwindSafe for AutoPlate
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more