pub struct CreateReport {
pub program: String,
pub title: String,
pub vulnerability_information: Option<String>,
pub impact: Option<String>,
pub severity_rating: Option<SeverityRating>,
pub weakness_id: Option<String>,
pub structured_scope_id: Option<String>,
pub custom_fields: BTreeMap<String, Value>,
}Expand description
A report to create. Build it with the chainable methods, then
Client::create_report.
Fields§
§program: StringProgram handle or numeric id (required).
title: StringReport title (required).
vulnerability_information: Option<String>The finding write-up.
impact: Option<String>Business impact.
severity_rating: Option<SeverityRating>Suggested severity.
weakness_id: Option<String>Weakness id (CWE mapping) — GET /v1/weaknesses resolves these.
structured_scope_id: Option<String>Structured scope id this report targets.
custom_fields: BTreeMap<String, Value>Program-specific custom fields.
Implementations§
Source§impl CreateReport
impl CreateReport
Sourcepub fn new(program: impl Into<String>, title: impl Into<String>) -> Self
pub fn new(program: impl Into<String>, title: impl Into<String>) -> Self
A report for program with title.
Sourcepub fn vulnerability_information(self, text: impl Into<String>) -> Self
pub fn vulnerability_information(self, text: impl Into<String>) -> Self
Set the vulnerability write-up.
Sourcepub fn severity(self, rating: SeverityRating) -> Self
pub fn severity(self, rating: SeverityRating) -> Self
Suggest a severity.
Sourcepub fn structured_scope(self, id: impl Into<String>) -> Self
pub fn structured_scope(self, id: impl Into<String>) -> Self
Pin the structured scope.
Sourcepub fn custom_field(self, key: impl Into<String>, value: Value) -> Self
pub fn custom_field(self, key: impl Into<String>, value: Value) -> Self
Set a program-specific custom field.
Trait Implementations§
Source§impl Clone for CreateReport
impl Clone for CreateReport
Source§impl Debug for CreateReport
impl Debug for CreateReport
Auto Trait Implementations§
impl Freeze for CreateReport
impl RefUnwindSafe for CreateReport
impl Send for CreateReport
impl Sync for CreateReport
impl Unpin for CreateReport
impl UnsafeUnpin for CreateReport
impl UnwindSafe for CreateReport
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