#[non_exhaustive]pub struct Finding {Show 18 fields
pub name: String,
pub finding_type: String,
pub severity: Severity,
pub http_method: String,
pub fuzzed_url: String,
pub body: String,
pub description: String,
pub reproduction_url: String,
pub frame_url: String,
pub final_url: String,
pub tracking_id: String,
pub form: Option<Form>,
pub outdated_library: Option<OutdatedLibrary>,
pub violating_resource: Option<ViolatingResource>,
pub vulnerable_headers: Option<VulnerableHeaders>,
pub vulnerable_parameters: Option<VulnerableParameters>,
pub xss: Option<Xss>,
pub xxe: Option<Xxe>,
/* private fields */
}Expand description
A Finding resource represents a vulnerability instance identified during a ScanRun.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringOutput only. The resource name of the Finding. The name follows the format of ‘projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}’. The finding IDs are generated by the system.
finding_type: StringOutput only. The type of the Finding. Detailed and up-to-date information on findings can be found here: https://cloud.google.com/security-command-center/docs/how-to-remediate-web-security-scanner-findings
severity: SeverityOutput only. The severity level of the reported vulnerability.
http_method: StringOutput only. The http method of the request that triggered the vulnerability, in uppercase.
fuzzed_url: StringOutput only. The URL produced by the server-side fuzzer and used in the request that triggered the vulnerability.
body: StringOutput only. The body of the request that triggered the vulnerability.
description: StringOutput only. The description of the vulnerability.
reproduction_url: StringOutput only. The URL containing human-readable payload that user can leverage to reproduce the vulnerability.
frame_url: StringOutput only. If the vulnerability was originated from nested IFrame, the immediate parent IFrame is reported.
final_url: StringOutput only. The URL where the browser lands when the vulnerability is detected.
tracking_id: StringOutput only. The tracking ID uniquely identifies a vulnerability instance across multiple ScanRuns.
form: Option<Form>Output only. An addon containing information reported for a vulnerability with an HTML form, if any.
outdated_library: Option<OutdatedLibrary>Output only. An addon containing information about outdated libraries.
violating_resource: Option<ViolatingResource>Output only. An addon containing detailed information regarding any resource causing the vulnerability such as JavaScript sources, image, audio files, etc.
vulnerable_headers: Option<VulnerableHeaders>Output only. An addon containing information about vulnerable or missing HTTP headers.
vulnerable_parameters: Option<VulnerableParameters>Output only. An addon containing information about request parameters which were found to be vulnerable.
xss: Option<Xss>Output only. An addon containing information reported for an XSS, if any.
xxe: Option<Xxe>Output only. An addon containing information reported for an XXE, if any.
Implementations§
Source§impl Finding
impl Finding
pub fn new() -> Self
Sourcepub fn set_finding_type<T: Into<String>>(self, v: T) -> Self
pub fn set_finding_type<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_severity<T: Into<Severity>>(self, v: T) -> Self
pub fn set_severity<T: Into<Severity>>(self, v: T) -> Self
Sourcepub fn set_http_method<T: Into<String>>(self, v: T) -> Self
pub fn set_http_method<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_fuzzed_url<T: Into<String>>(self, v: T) -> Self
pub fn set_fuzzed_url<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_reproduction_url<T: Into<String>>(self, v: T) -> Self
pub fn set_reproduction_url<T: Into<String>>(self, v: T) -> Self
Sets the value of reproduction_url.
§Example
let x = Finding::new().set_reproduction_url("example");Sourcepub fn set_frame_url<T: Into<String>>(self, v: T) -> Self
pub fn set_frame_url<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_final_url<T: Into<String>>(self, v: T) -> Self
pub fn set_final_url<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_tracking_id<T: Into<String>>(self, v: T) -> Self
pub fn set_tracking_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_or_clear_form<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_form<T>(self, v: Option<T>) -> Self
Sourcepub fn set_outdated_library<T>(self, v: T) -> Selfwhere
T: Into<OutdatedLibrary>,
pub fn set_outdated_library<T>(self, v: T) -> Selfwhere
T: Into<OutdatedLibrary>,
Sets the value of outdated_library.
§Example
use google_cloud_websecurityscanner_v1::model::OutdatedLibrary;
let x = Finding::new().set_outdated_library(OutdatedLibrary::default()/* use setters */);Sourcepub fn set_or_clear_outdated_library<T>(self, v: Option<T>) -> Selfwhere
T: Into<OutdatedLibrary>,
pub fn set_or_clear_outdated_library<T>(self, v: Option<T>) -> Selfwhere
T: Into<OutdatedLibrary>,
Sets or clears the value of outdated_library.
§Example
use google_cloud_websecurityscanner_v1::model::OutdatedLibrary;
let x = Finding::new().set_or_clear_outdated_library(Some(OutdatedLibrary::default()/* use setters */));
let x = Finding::new().set_or_clear_outdated_library(None::<OutdatedLibrary>);Sourcepub fn set_violating_resource<T>(self, v: T) -> Selfwhere
T: Into<ViolatingResource>,
pub fn set_violating_resource<T>(self, v: T) -> Selfwhere
T: Into<ViolatingResource>,
Sets the value of violating_resource.
§Example
use google_cloud_websecurityscanner_v1::model::ViolatingResource;
let x = Finding::new().set_violating_resource(ViolatingResource::default()/* use setters */);Sourcepub fn set_or_clear_violating_resource<T>(self, v: Option<T>) -> Selfwhere
T: Into<ViolatingResource>,
pub fn set_or_clear_violating_resource<T>(self, v: Option<T>) -> Selfwhere
T: Into<ViolatingResource>,
Sets or clears the value of violating_resource.
§Example
use google_cloud_websecurityscanner_v1::model::ViolatingResource;
let x = Finding::new().set_or_clear_violating_resource(Some(ViolatingResource::default()/* use setters */));
let x = Finding::new().set_or_clear_violating_resource(None::<ViolatingResource>);Sourcepub fn set_vulnerable_headers<T>(self, v: T) -> Selfwhere
T: Into<VulnerableHeaders>,
pub fn set_vulnerable_headers<T>(self, v: T) -> Selfwhere
T: Into<VulnerableHeaders>,
Sets the value of vulnerable_headers.
§Example
use google_cloud_websecurityscanner_v1::model::VulnerableHeaders;
let x = Finding::new().set_vulnerable_headers(VulnerableHeaders::default()/* use setters */);Sourcepub fn set_or_clear_vulnerable_headers<T>(self, v: Option<T>) -> Selfwhere
T: Into<VulnerableHeaders>,
pub fn set_or_clear_vulnerable_headers<T>(self, v: Option<T>) -> Selfwhere
T: Into<VulnerableHeaders>,
Sets or clears the value of vulnerable_headers.
§Example
use google_cloud_websecurityscanner_v1::model::VulnerableHeaders;
let x = Finding::new().set_or_clear_vulnerable_headers(Some(VulnerableHeaders::default()/* use setters */));
let x = Finding::new().set_or_clear_vulnerable_headers(None::<VulnerableHeaders>);Sourcepub fn set_vulnerable_parameters<T>(self, v: T) -> Selfwhere
T: Into<VulnerableParameters>,
pub fn set_vulnerable_parameters<T>(self, v: T) -> Selfwhere
T: Into<VulnerableParameters>,
Sets the value of vulnerable_parameters.
§Example
use google_cloud_websecurityscanner_v1::model::VulnerableParameters;
let x = Finding::new().set_vulnerable_parameters(VulnerableParameters::default()/* use setters */);Sourcepub fn set_or_clear_vulnerable_parameters<T>(self, v: Option<T>) -> Selfwhere
T: Into<VulnerableParameters>,
pub fn set_or_clear_vulnerable_parameters<T>(self, v: Option<T>) -> Selfwhere
T: Into<VulnerableParameters>,
Sets or clears the value of vulnerable_parameters.
§Example
use google_cloud_websecurityscanner_v1::model::VulnerableParameters;
let x = Finding::new().set_or_clear_vulnerable_parameters(Some(VulnerableParameters::default()/* use setters */));
let x = Finding::new().set_or_clear_vulnerable_parameters(None::<VulnerableParameters>);