pub struct ExplainedFinding {
pub package: Arc<str>,
pub raw: Value,
}Expand description
A finding extracted from a single-package JSON, workspace JSON, or JSONL report.
Fields§
§package: Arc<str>§raw: ValueImplementations§
Source§impl ExplainedFinding
impl ExplainedFinding
pub fn id(&self) -> &str
pub fn kind(&self) -> &str
pub fn file(&self) -> &str
pub fn line(&self) -> usize
pub fn column(&self) -> usize
pub fn site(&self) -> String
pub fn line_site(&self) -> String
pub fn item(&self) -> &str
pub fn code(&self) -> &str
Sourcepub fn ignore_comment(&self) -> String
pub fn ignore_comment(&self) -> String
Copy-pasteable // tmt:ignore[...] directive for this finding.
Trait Implementations§
Source§impl Clone for ExplainedFinding
impl Clone for ExplainedFinding
Source§impl Debug for ExplainedFinding
impl Debug for ExplainedFinding
Source§impl PartialEq for ExplainedFinding
impl PartialEq for ExplainedFinding
impl StructuralPartialEq for ExplainedFinding
Auto Trait Implementations§
impl Forget for ExplainedFinding
impl Freeze for ExplainedFinding
impl Move for ExplainedFinding
impl RefUnwindSafe for ExplainedFinding
impl Send for ExplainedFinding
impl Sync for ExplainedFinding
impl Unpin for ExplainedFinding
impl UnsafeUnpin for ExplainedFindingwhere
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for ExplainedFinding
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