#[non_exhaustive]pub struct ScanRunErrorTrace {
pub code: Code,
pub scan_config_error: Option<ScanConfigError>,
pub most_common_http_error_code: i32,
/* private fields */
}Expand description
Output only. Defines an error trace message for 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.code: CodeOutput only. Indicates the error reason code.
scan_config_error: Option<ScanConfigError>Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error message encountered during scan configuration validation that is performed before each scan run.
most_common_http_error_code: i32Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most common HTTP error code, if such is available. For example, if this code is 404, the scan has encountered too many NOT_FOUND responses.
Implementations§
Source§impl ScanRunErrorTrace
impl ScanRunErrorTrace
pub fn new() -> Self
Sourcepub fn set_code<T: Into<Code>>(self, v: T) -> Self
pub fn set_code<T: Into<Code>>(self, v: T) -> Self
Sets the value of code.
§Example
ⓘ
use google_cloud_websecurityscanner_v1::model::scan_run_error_trace::Code;
let x0 = ScanRunErrorTrace::new().set_code(Code::InternalError);
let x1 = ScanRunErrorTrace::new().set_code(Code::ScanConfigIssue);
let x2 = ScanRunErrorTrace::new().set_code(Code::AuthenticationConfigIssue);Sourcepub fn set_scan_config_error<T>(self, v: T) -> Selfwhere
T: Into<ScanConfigError>,
pub fn set_scan_config_error<T>(self, v: T) -> Selfwhere
T: Into<ScanConfigError>,
Sets the value of scan_config_error.
§Example
ⓘ
use google_cloud_websecurityscanner_v1::model::ScanConfigError;
let x = ScanRunErrorTrace::new().set_scan_config_error(ScanConfigError::default()/* use setters */);Sourcepub fn set_or_clear_scan_config_error<T>(self, v: Option<T>) -> Selfwhere
T: Into<ScanConfigError>,
pub fn set_or_clear_scan_config_error<T>(self, v: Option<T>) -> Selfwhere
T: Into<ScanConfigError>,
Sets or clears the value of scan_config_error.
§Example
ⓘ
use google_cloud_websecurityscanner_v1::model::ScanConfigError;
let x = ScanRunErrorTrace::new().set_or_clear_scan_config_error(Some(ScanConfigError::default()/* use setters */));
let x = ScanRunErrorTrace::new().set_or_clear_scan_config_error(None::<ScanConfigError>);Sourcepub fn set_most_common_http_error_code<T: Into<i32>>(self, v: T) -> Self
pub fn set_most_common_http_error_code<T: Into<i32>>(self, v: T) -> Self
Sets the value of most_common_http_error_code.
§Example
ⓘ
let x = ScanRunErrorTrace::new().set_most_common_http_error_code(42);Trait Implementations§
Source§impl Clone for ScanRunErrorTrace
impl Clone for ScanRunErrorTrace
Source§fn clone(&self) -> ScanRunErrorTrace
fn clone(&self) -> ScanRunErrorTrace
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 ScanRunErrorTrace
impl Debug for ScanRunErrorTrace
Source§impl Default for ScanRunErrorTrace
impl Default for ScanRunErrorTrace
Source§fn default() -> ScanRunErrorTrace
fn default() -> ScanRunErrorTrace
Returns the “default value” for a type. Read more
Source§impl Message for ScanRunErrorTrace
impl Message for ScanRunErrorTrace
Source§impl PartialEq for ScanRunErrorTrace
impl PartialEq for ScanRunErrorTrace
impl StructuralPartialEq for ScanRunErrorTrace
Auto Trait Implementations§
impl Freeze for ScanRunErrorTrace
impl RefUnwindSafe for ScanRunErrorTrace
impl Send for ScanRunErrorTrace
impl Sync for ScanRunErrorTrace
impl Unpin for ScanRunErrorTrace
impl UnwindSafe for ScanRunErrorTrace
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