#[non_exhaustive]pub struct ScanConfigError {
pub code: Code,
pub field_name: String,
/* private fields */
}Expand description
Defines a custom error message used by CreateScanConfig and UpdateScanConfig APIs when scan configuration validation fails. It is also reported as part of a ScanRunErrorTrace message if scan validation fails due to a scan configuration error.
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 reason code for a configuration failure.
field_name: StringOutput only. Indicates the full name of the ScanConfig field that triggers this error, for example “scan_config.max_qps”. This field is provided for troubleshooting purposes only and its actual value can change in the future.
Implementations§
Source§impl ScanConfigError
impl ScanConfigError
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_config_error::Code;
let x0 = ScanConfigError::new().set_code(Code::InternalError);
let x1 = ScanConfigError::new().set_code(Code::AppengineApiBackendError);
let x2 = ScanConfigError::new().set_code(Code::AppengineApiNotAccessible);Sourcepub fn set_field_name<T: Into<String>>(self, v: T) -> Self
pub fn set_field_name<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for ScanConfigError
impl Clone for ScanConfigError
Source§fn clone(&self) -> ScanConfigError
fn clone(&self) -> ScanConfigError
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 ScanConfigError
impl Debug for ScanConfigError
Source§impl Default for ScanConfigError
impl Default for ScanConfigError
Source§fn default() -> ScanConfigError
fn default() -> ScanConfigError
Returns the “default value” for a type. Read more
Source§impl Message for ScanConfigError
impl Message for ScanConfigError
Source§impl PartialEq for ScanConfigError
impl PartialEq for ScanConfigError
impl StructuralPartialEq for ScanConfigError
Auto Trait Implementations§
impl Freeze for ScanConfigError
impl RefUnwindSafe for ScanConfigError
impl Send for ScanConfigError
impl Sync for ScanConfigError
impl Unpin for ScanConfigError
impl UnwindSafe for ScanConfigError
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