Finding

Struct Finding 

Source
#[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
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.
§name: String

Output 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: String

Output 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: Severity

Output only. The severity level of the reported vulnerability.

§http_method: String

Output only. The http method of the request that triggered the vulnerability, in uppercase.

§fuzzed_url: String

Output only. The URL produced by the server-side fuzzer and used in the request that triggered the vulnerability.

§body: String

Output only. The body of the request that triggered the vulnerability.

§description: String

Output only. The description of the vulnerability.

§reproduction_url: String

Output only. The URL containing human-readable payload that user can leverage to reproduce the vulnerability.

§frame_url: String

Output only. If the vulnerability was originated from nested IFrame, the immediate parent IFrame is reported.

§final_url: String

Output only. The URL where the browser lands when the vulnerability is detected.

§tracking_id: String

Output 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

Source

pub fn new() -> Self

Source

pub fn set_name<T: Into<String>>(self, v: T) -> Self

Sets the value of name.

§Example
let x = Finding::new().set_name("example");
Source

pub fn set_finding_type<T: Into<String>>(self, v: T) -> Self

Sets the value of finding_type.

§Example
let x = Finding::new().set_finding_type("example");
Source

pub fn set_severity<T: Into<Severity>>(self, v: T) -> Self

Sets the value of severity.

§Example
use google_cloud_websecurityscanner_v1::model::finding::Severity;
let x0 = Finding::new().set_severity(Severity::Critical);
let x1 = Finding::new().set_severity(Severity::High);
let x2 = Finding::new().set_severity(Severity::Medium);
Source

pub fn set_http_method<T: Into<String>>(self, v: T) -> Self

Sets the value of http_method.

§Example
let x = Finding::new().set_http_method("example");
Source

pub fn set_fuzzed_url<T: Into<String>>(self, v: T) -> Self

Sets the value of fuzzed_url.

§Example
let x = Finding::new().set_fuzzed_url("example");
Source

pub fn set_body<T: Into<String>>(self, v: T) -> Self

Sets the value of body.

§Example
let x = Finding::new().set_body("example");
Source

pub fn set_description<T: Into<String>>(self, v: T) -> Self

Sets the value of description.

§Example
let x = Finding::new().set_description("example");
Source

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");
Source

pub fn set_frame_url<T: Into<String>>(self, v: T) -> Self

Sets the value of frame_url.

§Example
let x = Finding::new().set_frame_url("example");
Source

pub fn set_final_url<T: Into<String>>(self, v: T) -> Self

Sets the value of final_url.

§Example
let x = Finding::new().set_final_url("example");
Source

pub fn set_tracking_id<T: Into<String>>(self, v: T) -> Self

Sets the value of tracking_id.

§Example
let x = Finding::new().set_tracking_id("example");
Source

pub fn set_form<T>(self, v: T) -> Self
where T: Into<Form>,

Sets the value of form.

§Example
use google_cloud_websecurityscanner_v1::model::Form;
let x = Finding::new().set_form(Form::default()/* use setters */);
Source

pub fn set_or_clear_form<T>(self, v: Option<T>) -> Self
where T: Into<Form>,

Sets or clears the value of form.

§Example
use google_cloud_websecurityscanner_v1::model::Form;
let x = Finding::new().set_or_clear_form(Some(Form::default()/* use setters */));
let x = Finding::new().set_or_clear_form(None::<Form>);
Source

pub fn set_outdated_library<T>(self, v: T) -> Self

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 */);
Source

pub fn set_or_clear_outdated_library<T>(self, v: Option<T>) -> Self

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>);
Source

pub fn set_violating_resource<T>(self, v: T) -> Self

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 */);
Source

pub fn set_or_clear_violating_resource<T>(self, v: Option<T>) -> Self

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>);
Source

pub fn set_vulnerable_headers<T>(self, v: T) -> Self

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 */);
Source

pub fn set_or_clear_vulnerable_headers<T>(self, v: Option<T>) -> Self

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>);
Source

pub fn set_vulnerable_parameters<T>(self, v: T) -> Self

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 */);
Source

pub fn set_or_clear_vulnerable_parameters<T>(self, v: Option<T>) -> Self

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>);
Source

pub fn set_xss<T>(self, v: T) -> Self
where T: Into<Xss>,

Sets the value of xss.

§Example
use google_cloud_websecurityscanner_v1::model::Xss;
let x = Finding::new().set_xss(Xss::default()/* use setters */);
Source

pub fn set_or_clear_xss<T>(self, v: Option<T>) -> Self
where T: Into<Xss>,

Sets or clears the value of xss.

§Example
use google_cloud_websecurityscanner_v1::model::Xss;
let x = Finding::new().set_or_clear_xss(Some(Xss::default()/* use setters */));
let x = Finding::new().set_or_clear_xss(None::<Xss>);
Source

pub fn set_xxe<T>(self, v: T) -> Self
where T: Into<Xxe>,

Sets the value of xxe.

§Example
use google_cloud_websecurityscanner_v1::model::Xxe;
let x = Finding::new().set_xxe(Xxe::default()/* use setters */);
Source

pub fn set_or_clear_xxe<T>(self, v: Option<T>) -> Self
where T: Into<Xxe>,

Sets or clears the value of xxe.

§Example
use google_cloud_websecurityscanner_v1::model::Xxe;
let x = Finding::new().set_or_clear_xxe(Some(Xxe::default()/* use setters */));
let x = Finding::new().set_or_clear_xxe(None::<Xxe>);

Trait Implementations§

Source§

impl Clone for Finding

Source§

fn clone(&self) -> Finding

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Finding

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Finding

Source§

fn default() -> Finding

Returns the “default value” for a type. Read more
Source§

impl Message for Finding

Source§

fn typename() -> &'static str

The typename of this message.
Source§

impl PartialEq for Finding

Source§

fn eq(&self, other: &Finding) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Finding

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,