pub struct RenderOptions {
pub group_by_ecosystem: bool,
pub show_warnings: bool,
pub old_warnings: Vec<String>,
pub new_warnings: Vec<String>,
}Expand description
Options controlling how diffs are rendered.
Fields§
§group_by_ecosystem: boolWhen true, include a per-ecosystem breakdown of added/removed/changed counts.
show_warnings: boolWhen true, include parser warnings in the output.
old_warnings: Vec<String>Parser warnings from the old SBOM.
new_warnings: Vec<String>Parser warnings from the new SBOM.
Implementations§
Source§impl RenderOptions
impl RenderOptions
Sourcepub fn has_warnings(&self) -> bool
pub fn has_warnings(&self) -> bool
Returns true when warnings should be displayed.
Sourcepub fn warning_count(&self) -> usize
pub fn warning_count(&self) -> usize
Total number of warnings across both SBOMs.
Trait Implementations§
Source§impl Clone for RenderOptions
impl Clone for RenderOptions
Source§fn clone(&self) -> RenderOptions
fn clone(&self) -> RenderOptions
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 moreSource§impl Debug for RenderOptions
impl Debug for RenderOptions
Source§impl Default for RenderOptions
impl Default for RenderOptions
Source§fn default() -> RenderOptions
fn default() -> RenderOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RenderOptions
impl RefUnwindSafe for RenderOptions
impl Send for RenderOptions
impl Sync for RenderOptions
impl Unpin for RenderOptions
impl UnsafeUnpin for RenderOptions
impl UnwindSafe for RenderOptions
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