#[non_exhaustive]pub struct ScanRunWarningTrace {
pub code: Code,
/* private fields */
}Expand description
Output only. Defines a warning trace message for ScanRun. Warning traces provide customers with useful information that helps make the scanning process more effective.
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 warning code.
Implementations§
Source§impl ScanRunWarningTrace
impl ScanRunWarningTrace
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_warning_trace::Code;
let x0 = ScanRunWarningTrace::new().set_code(Code::InsufficientCrawlResults);
let x1 = ScanRunWarningTrace::new().set_code(Code::TooManyCrawlResults);
let x2 = ScanRunWarningTrace::new().set_code(Code::TooManyFuzzTasks);Trait Implementations§
Source§impl Clone for ScanRunWarningTrace
impl Clone for ScanRunWarningTrace
Source§fn clone(&self) -> ScanRunWarningTrace
fn clone(&self) -> ScanRunWarningTrace
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 ScanRunWarningTrace
impl Debug for ScanRunWarningTrace
Source§impl Default for ScanRunWarningTrace
impl Default for ScanRunWarningTrace
Source§fn default() -> ScanRunWarningTrace
fn default() -> ScanRunWarningTrace
Returns the “default value” for a type. Read more
Source§impl Message for ScanRunWarningTrace
impl Message for ScanRunWarningTrace
Source§impl PartialEq for ScanRunWarningTrace
impl PartialEq for ScanRunWarningTrace
impl StructuralPartialEq for ScanRunWarningTrace
Auto Trait Implementations§
impl Freeze for ScanRunWarningTrace
impl RefUnwindSafe for ScanRunWarningTrace
impl Send for ScanRunWarningTrace
impl Sync for ScanRunWarningTrace
impl Unpin for ScanRunWarningTrace
impl UnwindSafe for ScanRunWarningTrace
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