pub struct TestReportDisplay { /* private fields */ }Expand description
Display configuration for test reports.
Implementations§
Source§impl TestReportDisplay
impl TestReportDisplay
Sourcepub fn new(mode: OutputMode) -> Self
pub fn new(mode: OutputMode) -> Self
Create a new display for a given mode.
Sourcepub fn theme(self, theme: FastApiTheme) -> Self
pub fn theme(self, theme: FastApiTheme) -> Self
Set the theme.
Sourcepub fn hide_timings(self) -> Self
pub fn hide_timings(self) -> Self
Hide per-test timings.
Sourcepub fn hide_summary(self) -> Self
pub fn hide_summary(self) -> Self
Hide summary footer.
Sourcepub fn hide_progress(self) -> Self
pub fn hide_progress(self) -> Self
Hide progress bar.
Sourcepub fn progress_width(self, width: usize) -> Self
pub fn progress_width(self, width: usize) -> Self
Set progress bar width.
Sourcepub fn render(&self, report: &TestReport) -> String
pub fn render(&self, report: &TestReport) -> String
Render the report to a string.
Trait Implementations§
Source§impl Clone for TestReportDisplay
impl Clone for TestReportDisplay
Source§fn clone(&self) -> TestReportDisplay
fn clone(&self) -> TestReportDisplay
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 moreAuto Trait Implementations§
impl Freeze for TestReportDisplay
impl RefUnwindSafe for TestReportDisplay
impl Send for TestReportDisplay
impl Sync for TestReportDisplay
impl Unpin for TestReportDisplay
impl UnsafeUnpin for TestReportDisplay
impl UnwindSafe for TestReportDisplay
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