#[non_exhaustive]pub struct ScanRunLog {
pub summary: String,
pub name: String,
pub execution_state: ExecutionState,
pub result_state: ResultState,
pub urls_crawled_count: i64,
pub urls_tested_count: i64,
pub has_findings: bool,
pub error_trace: Option<ScanRunErrorTrace>,
/* private fields */
}Expand description
A ScanRunLog is an output-only proto used for Stackdriver customer logging. It is used for logs covering the start and end of scan pipelines. Other than an added summary, this is a subset of the ScanRun. Representation in logs is either a proto Struct, or converted to JSON. Next id: 9
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.summary: StringHuman friendly message about the event.
name: StringThe resource name of the ScanRun being logged.
execution_state: ExecutionStateThe execution state of the ScanRun.
result_state: ResultStateThe result state of the ScanRun.
urls_crawled_count: i64§urls_tested_count: i64§has_findings: bool§error_trace: Option<ScanRunErrorTrace>Implementations§
Source§impl ScanRunLog
impl ScanRunLog
pub fn new() -> Self
Sourcepub fn set_summary<T: Into<String>>(self, v: T) -> Self
pub fn set_summary<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_execution_state<T: Into<ExecutionState>>(self, v: T) -> Self
pub fn set_execution_state<T: Into<ExecutionState>>(self, v: T) -> Self
Sets the value of execution_state.
§Example
ⓘ
use google_cloud_websecurityscanner_v1::model::scan_run::ExecutionState;
let x0 = ScanRunLog::new().set_execution_state(ExecutionState::Queued);
let x1 = ScanRunLog::new().set_execution_state(ExecutionState::Scanning);
let x2 = ScanRunLog::new().set_execution_state(ExecutionState::Finished);Sourcepub fn set_result_state<T: Into<ResultState>>(self, v: T) -> Self
pub fn set_result_state<T: Into<ResultState>>(self, v: T) -> Self
Sets the value of result_state.
§Example
ⓘ
use google_cloud_websecurityscanner_v1::model::scan_run::ResultState;
let x0 = ScanRunLog::new().set_result_state(ResultState::Success);
let x1 = ScanRunLog::new().set_result_state(ResultState::Error);
let x2 = ScanRunLog::new().set_result_state(ResultState::Killed);Sourcepub fn set_urls_crawled_count<T: Into<i64>>(self, v: T) -> Self
pub fn set_urls_crawled_count<T: Into<i64>>(self, v: T) -> Self
Sets the value of urls_crawled_count.
§Example
ⓘ
let x = ScanRunLog::new().set_urls_crawled_count(42);Sourcepub fn set_urls_tested_count<T: Into<i64>>(self, v: T) -> Self
pub fn set_urls_tested_count<T: Into<i64>>(self, v: T) -> Self
Sourcepub fn set_has_findings<T: Into<bool>>(self, v: T) -> Self
pub fn set_has_findings<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_error_trace<T>(self, v: T) -> Selfwhere
T: Into<ScanRunErrorTrace>,
pub fn set_error_trace<T>(self, v: T) -> Selfwhere
T: Into<ScanRunErrorTrace>,
Sets the value of error_trace.
§Example
ⓘ
use google_cloud_websecurityscanner_v1::model::ScanRunErrorTrace;
let x = ScanRunLog::new().set_error_trace(ScanRunErrorTrace::default()/* use setters */);Sourcepub fn set_or_clear_error_trace<T>(self, v: Option<T>) -> Selfwhere
T: Into<ScanRunErrorTrace>,
pub fn set_or_clear_error_trace<T>(self, v: Option<T>) -> Selfwhere
T: Into<ScanRunErrorTrace>,
Sets or clears the value of error_trace.
§Example
ⓘ
use google_cloud_websecurityscanner_v1::model::ScanRunErrorTrace;
let x = ScanRunLog::new().set_or_clear_error_trace(Some(ScanRunErrorTrace::default()/* use setters */));
let x = ScanRunLog::new().set_or_clear_error_trace(None::<ScanRunErrorTrace>);Trait Implementations§
Source§impl Clone for ScanRunLog
impl Clone for ScanRunLog
Source§fn clone(&self) -> ScanRunLog
fn clone(&self) -> ScanRunLog
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 ScanRunLog
impl Debug for ScanRunLog
Source§impl Default for ScanRunLog
impl Default for ScanRunLog
Source§fn default() -> ScanRunLog
fn default() -> ScanRunLog
Returns the “default value” for a type. Read more
Source§impl PartialEq for ScanRunLog
impl PartialEq for ScanRunLog
impl StructuralPartialEq for ScanRunLog
Auto Trait Implementations§
impl Freeze for ScanRunLog
impl RefUnwindSafe for ScanRunLog
impl Send for ScanRunLog
impl Sync for ScanRunLog
impl Unpin for ScanRunLog
impl UnwindSafe for ScanRunLog
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