pub struct BinaryTemplateEngine { /* private fields */ }
Expand description
Binary template engine for processing binary-specific templates
Implementations§
Source§impl BinaryTemplateEngine
impl BinaryTemplateEngine
Sourcepub fn new() -> Result<Self, BinaryExportError>
pub fn new() -> Result<Self, BinaryExportError>
Create a new binary template engine with default configuration
Sourcepub fn with_config(
config: BinaryTemplateEngineConfig,
) -> Result<Self, BinaryExportError>
pub fn with_config( config: BinaryTemplateEngineConfig, ) -> Result<Self, BinaryExportError>
Create a new binary template engine with custom configuration
Sourcepub fn render_binary_template(
&mut self,
template_data: &BinaryTemplateData,
) -> Result<String, BinaryExportError>
pub fn render_binary_template( &mut self, template_data: &BinaryTemplateData, ) -> Result<String, BinaryExportError>
Render the binary dashboard template with the provided data
Sourcepub fn get_stats(&self) -> BinaryTemplateEngineStats
pub fn get_stats(&self) -> BinaryTemplateEngineStats
Get performance statistics
Sourcepub fn last_render_time(&self) -> u64
pub fn last_render_time(&self) -> u64
Get last render time in milliseconds
Sourcepub fn clear_cache(&mut self)
pub fn clear_cache(&mut self)
Clear template cache
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BinaryTemplateEngine
impl !RefUnwindSafe for BinaryTemplateEngine
impl Send for BinaryTemplateEngine
impl Sync for BinaryTemplateEngine
impl Unpin for BinaryTemplateEngine
impl !UnwindSafe for BinaryTemplateEngine
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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