#[non_exhaustive]pub struct FindingSpec {
pub id: String,
pub category: String,
pub priority: String,
pub title: String,
pub body: String,
pub refs: Vec<String>,
}Expand description
v0.18.0 (13a step 8b): review findings.
v0.18.0 (13a step 8b): review findings.
v0.18.0 (13a step 8b): review findings.
v0.18.0: a finding to add (Mnemo::finding_add).
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.id: StringIts id, ^[A-Z]+-[0-9]+\.[0-9]+$ (RB-014.1); unique.
category: StringOne of FINDING_CATEGORIES.
priority: StringOne of FINDING_PRIORITIES.
title: StringOne line, at most FINDING_TITLE_MAX bytes.
body: StringAt most FINDING_BODY_MAX bytes.
refs: Vec<String>What it points at: files and lines, commits, PRs.
Implementations§
Source§impl FindingSpec
impl FindingSpec
Sourcepub fn new(
id: impl Into<String>,
category: impl Into<String>,
priority: impl Into<String>,
title: impl Into<String>,
) -> Self
pub fn new( id: impl Into<String>, category: impl Into<String>, priority: impl Into<String>, title: impl Into<String>, ) -> Self
v0.19.0: a finding with its id, category, priority and title, and no
body or refs. The type is #[non_exhaustive], so outside this crate
set the other fields after this (spec.body = "…".into()).
Trait Implementations§
Source§impl Clone for FindingSpec
impl Clone for FindingSpec
Source§impl Debug for FindingSpec
impl Debug for FindingSpec
Source§impl Default for FindingSpec
impl Default for FindingSpec
impl Eq for FindingSpec
Source§impl PartialEq for FindingSpec
impl PartialEq for FindingSpec
impl StructuralPartialEq for FindingSpec
Auto Trait Implementations§
impl Forget for FindingSpec
impl Freeze for FindingSpec
impl Move for FindingSpec
impl RefUnwindSafe for FindingSpec
impl Send for FindingSpec
impl Sync for FindingSpec
impl Unpin for FindingSpec
impl UnsafeUnpin for FindingSpec
impl UnwindSafe for FindingSpec
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