#[non_exhaustive]pub struct MetricsExportOptions { /* private fields */ }Expand description
Immutable presentation options for one metrics HTML report.
Implementations§
Source§impl MetricsExportOptions
impl MetricsExportOptions
Sourcepub fn with_title(self, title: impl Into<String>) -> Self
pub fn with_title(self, title: impl Into<String>) -> Self
Sets the document title and visible heading.
Sourcepub const fn with_timestamp(self, include_timestamp: bool) -> Self
pub const fn with_timestamp(self, include_timestamp: bool) -> Self
Includes or omits the generated-at UTC timestamp.
Sourcepub fn with_custom_css(self, custom_css: impl Into<String>) -> Self
pub fn with_custom_css(self, custom_css: impl Into<String>) -> Self
Replaces the built-in offline stylesheet with caller-supplied CSS.
Sourcepub const fn includes_timestamp(&self) -> bool
pub const fn includes_timestamp(&self) -> bool
Returns whether the report includes a generated-at timestamp.
Sourcepub fn custom_css(&self) -> Option<&str>
pub fn custom_css(&self) -> Option<&str>
Returns caller-supplied CSS, or None for the built-in stylesheet.
Trait Implementations§
Source§impl Clone for MetricsExportOptions
impl Clone for MetricsExportOptions
Source§fn clone(&self) -> MetricsExportOptions
fn clone(&self) -> MetricsExportOptions
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 MetricsExportOptions
impl Debug for MetricsExportOptions
Source§impl Default for MetricsExportOptions
impl Default for MetricsExportOptions
Source§impl PartialEq for MetricsExportOptions
impl PartialEq for MetricsExportOptions
impl Eq for MetricsExportOptions
impl StructuralPartialEq for MetricsExportOptions
Auto Trait Implementations§
impl Freeze for MetricsExportOptions
impl RefUnwindSafe for MetricsExportOptions
impl Send for MetricsExportOptions
impl Sync for MetricsExportOptions
impl Unpin for MetricsExportOptions
impl UnwindSafe for MetricsExportOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.