pub struct MetricsExporter;Expand description
Renders and writes self-contained offline metrics reports.
Implementations§
Source§impl MetricsExporter
impl MetricsExporter
Sourcepub fn render_html(data: &MetricsReportData) -> Result<String, ArchUnitError>
pub fn render_html(data: &MetricsReportData) -> Result<String, ArchUnitError>
Renders caller-supplied data with default options.
Sourcepub fn render_html_with(
data: &MetricsReportData,
options: &MetricsExportOptions,
) -> Result<String, ArchUnitError>
pub fn render_html_with( data: &MetricsReportData, options: &MetricsExportOptions, ) -> Result<String, ArchUnitError>
Renders caller-supplied data as one complete escaped HTML document.
Sourcepub fn export_as_html(
data: &MetricsReportData,
output_path: impl AsRef<Path>,
) -> Result<PathBuf, ArchUnitError>
pub fn export_as_html( data: &MetricsReportData, output_path: impl AsRef<Path>, ) -> Result<PathBuf, ArchUnitError>
Writes caller-supplied data with default options and returns the resolved .html path.
Sourcepub fn export_as_html_with(
data: &MetricsReportData,
output_path: impl AsRef<Path>,
options: &MetricsExportOptions,
) -> Result<PathBuf, ArchUnitError>
pub fn export_as_html_with( data: &MetricsReportData, output_path: impl AsRef<Path>, options: &MetricsExportOptions, ) -> Result<PathBuf, ArchUnitError>
Writes one UTF-8 report, creating parents and appending .html when needed.
Sourcepub fn data_from_measurements(
measurements: &[MetricMeasurement],
) -> MetricsReportData
pub fn data_from_measurements( measurements: &[MetricMeasurement], ) -> MetricsReportData
Builds deterministic display rows from measured metric evidence.
Trait Implementations§
Source§impl Clone for MetricsExporter
impl Clone for MetricsExporter
Source§fn clone(&self) -> MetricsExporter
fn clone(&self) -> MetricsExporter
Returns a copy 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 MetricsExporter
impl Debug for MetricsExporter
Source§impl Default for MetricsExporter
impl Default for MetricsExporter
Source§fn default() -> MetricsExporter
fn default() -> MetricsExporter
Returns the “default value” for a type. Read more
impl Copy for MetricsExporter
Auto Trait Implementations§
impl Freeze for MetricsExporter
impl RefUnwindSafe for MetricsExporter
impl Send for MetricsExporter
impl Sync for MetricsExporter
impl Unpin for MetricsExporter
impl UnwindSafe for MetricsExporter
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