pub struct HtmlReportConfig {
pub title: String,
pub highlight_uncovered: bool,
pub include_branch_coverage: bool,
pub theme: Theme,
pub show_line_numbers: bool,
}Expand description
Configuration for HTML coverage report
Fields§
§title: StringReport title
highlight_uncovered: boolHighlight uncovered lines
include_branch_coverage: boolInclude branch coverage information
theme: ThemeColor theme
show_line_numbers: boolShow line numbers
Implementations§
Source§impl HtmlReportConfig
impl HtmlReportConfig
Sourcepub fn with_title(self, title: impl Into<String>) -> Self
pub fn with_title(self, title: impl Into<String>) -> Self
Set the report title
Sourcepub fn with_highlight_uncovered(self, highlight: bool) -> Self
pub fn with_highlight_uncovered(self, highlight: bool) -> Self
Set highlight uncovered option
Sourcepub fn with_branch_coverage(self, include: bool) -> Self
pub fn with_branch_coverage(self, include: bool) -> Self
Set branch coverage option
Sourcepub fn with_theme(self, theme: Theme) -> Self
pub fn with_theme(self, theme: Theme) -> Self
Set the theme
Sourcepub fn with_line_numbers(self, show: bool) -> Self
pub fn with_line_numbers(self, show: bool) -> Self
Set show line numbers option
Trait Implementations§
Source§impl Clone for HtmlReportConfig
impl Clone for HtmlReportConfig
Source§fn clone(&self) -> HtmlReportConfig
fn clone(&self) -> HtmlReportConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HtmlReportConfig
impl Debug for HtmlReportConfig
Source§impl Default for HtmlReportConfig
impl Default for HtmlReportConfig
Source§impl<'de> Deserialize<'de> for HtmlReportConfig
impl<'de> Deserialize<'de> for HtmlReportConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HtmlReportConfig
impl RefUnwindSafe for HtmlReportConfig
impl Send for HtmlReportConfig
impl Sync for HtmlReportConfig
impl Unpin for HtmlReportConfig
impl UnsafeUnpin for HtmlReportConfig
impl UnwindSafe for HtmlReportConfig
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().