pub struct Report {
pub platform: String,
pub note: String,
pub findings: Vec<Finding>,
pub max_noise: u8,
pub lines_analyzed: usize,
}Expand description
The full report for an analyzed input.
Fields§
§platform: StringThe platform analyzed against, from KnowledgeBase::platform.
note: StringThe knowledge base’s caveat about what it assumes and does not claim,
carried through from KnowledgeBase::note. Surface it alongside the
findings: it is what keeps an empty findings from reading as proof
that nothing would be seen.
findings: Vec<Finding>Every match, deduplicated per line and ranked loudest-first.
An empty vector means no modeled action matched — the knowledge base covers a bounded set, so this is not evidence that the input is invisible.
max_noise: u8The loudest Finding::noise in the report, or 0 when there are none.
lines_analyzed: usizeHow many logical lines were analyzed, including ones that matched nothing — the denominator that makes a finding count meaningful.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Report
impl<'de> Deserialize<'de> for Report
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 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