pub struct TemplateRuntime { /* private fields */ }Implementations§
Source§impl TemplateRuntime
impl TemplateRuntime
pub fn new(registry: TemplateRegistry) -> Self
pub fn render_document( &self, namespaces: &[TemplateNamespace], request: DocumentRenderRequest, ) -> Result<RenderOutput, TemplateModelError>
pub fn render_fragment( &self, namespaces: &[TemplateNamespace], request: FragmentRenderRequest, ) -> Result<RenderOutput, TemplateModelError>
Trait Implementations§
Source§impl Clone for TemplateRuntime
impl Clone for TemplateRuntime
Source§fn clone(&self) -> TemplateRuntime
fn clone(&self) -> TemplateRuntime
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 TemplateRuntime
impl Debug for TemplateRuntime
Source§impl PartialEq for TemplateRuntime
impl PartialEq for TemplateRuntime
impl Eq for TemplateRuntime
impl StructuralPartialEq for TemplateRuntime
Auto Trait Implementations§
impl Freeze for TemplateRuntime
impl RefUnwindSafe for TemplateRuntime
impl Send for TemplateRuntime
impl Sync for TemplateRuntime
impl Unpin for TemplateRuntime
impl UnsafeUnpin for TemplateRuntime
impl UnwindSafe for TemplateRuntime
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