#[non_exhaustive]pub struct Finding {
pub kind: Kind,
pub evidence: String,
pub advice: String,
pub sample_code: Option<String>,
}Expand description
One finding: what was measured, and what to consider doing about it.
evidence, advice and sample_code are for people and may be reworded
in any release; branch on Kind, not on their text.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: KindWhat the finding is about.
evidence: StringThe measurement, with task names and source locations.
advice: StringA suggested change or further measurement.
sample_code: Option<String>Rust code to copy, for stage-weight findings.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Finding
impl RefUnwindSafe for Finding
impl Send for Finding
impl Sync for Finding
impl Unpin for Finding
impl UnsafeUnpin for Finding
impl UnwindSafe for Finding
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