pub struct AnalystNote {
pub target_type: NoteTargetType,
pub target_id: Option<String>,
pub note: String,
pub false_positive: bool,
pub severity_override: Option<String>,
pub created_at: DateTime<Utc>,
pub analyst: Option<String>,
}Expand description
Analyst note/annotation
Fields§
§target_type: NoteTargetTypeTarget type (what is being annotated)
target_id: Option<String>Target identifier (CVE ID, component name, etc.)
note: StringNote content
false_positive: boolWhether this marks a false positive
severity_override: Option<String>Severity override if applicable
created_at: DateTime<Utc>Note creation timestamp
analyst: Option<String>Analyst identifier
Implementations§
Source§impl AnalystNote
impl AnalystNote
Sourcepub fn new(target_type: NoteTargetType, note: String) -> Self
pub fn new(target_type: NoteTargetType, note: String) -> Self
Create a new analyst note
Sourcepub fn for_vulnerability(vuln_id: String, note: String) -> Self
pub fn for_vulnerability(vuln_id: String, note: String) -> Self
Create a note for a vulnerability
Sourcepub fn for_component(component_name: String, note: String) -> Self
pub fn for_component(component_name: String, note: String) -> Self
Create a note for a component
Sourcepub const fn mark_false_positive(self) -> Self
pub const fn mark_false_positive(self) -> Self
Mark as false positive
Trait Implementations§
Source§impl Clone for AnalystNote
impl Clone for AnalystNote
Source§fn clone(&self) -> AnalystNote
fn clone(&self) -> AnalystNote
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 AnalystNote
impl Debug for AnalystNote
Source§impl<'de> Deserialize<'de> for AnalystNote
impl<'de> Deserialize<'de> for AnalystNote
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 AnalystNote
impl RefUnwindSafe for AnalystNote
impl Send for AnalystNote
impl Sync for AnalystNote
impl Unpin for AnalystNote
impl UnsafeUnpin for AnalystNote
impl UnwindSafe for AnalystNote
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more