pub struct Report { /* private fields */ }Expand description
Represents the entire report, containing multiple sections and metadata.
Implementations§
Source§impl Report
impl Report
Sourcepub fn new(
software_name: &str,
version: &str,
software_logo: Option<&str>,
title: &str,
) -> Self
pub fn new( software_name: &str, version: &str, software_logo: Option<&str>, title: &str, ) -> Self
Creates a new report with the given metadata.
§Arguments
software_name- The name of the software generating the report.version- The version of the software.software_logo- An optional path to the software’s logo image.title- The title of the report.
Sourcepub fn add_section(&mut self, section: ReportSection)
pub fn add_section(&mut self, section: ReportSection)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
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