#[non_exhaustive]pub struct GcpScanOptionsDataAttributes {
pub vuln_containers_os: Option<bool>,
pub vuln_host_os: Option<bool>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}Expand description
Attributes for GCP scan options configuration.
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.vuln_containers_os: Option<bool>Indicates if scanning for vulnerabilities in containers is enabled.
vuln_host_os: Option<bool>Indicates if scanning for vulnerabilities in hosts is enabled.
additional_properties: BTreeMap<String, Value>Implementations§
Source§impl GcpScanOptionsDataAttributes
impl GcpScanOptionsDataAttributes
Sourcepub fn new() -> GcpScanOptionsDataAttributes
pub fn new() -> GcpScanOptionsDataAttributes
Examples found in repository?
examples/v2_agentless-scanning_CreateGcpScanOptions.rs (line 18)
11async fn main() {
12 let body = GcpScanOptions::new().data(
13 GcpScanOptionsData::new(
14 "new-project".to_string(),
15 GcpScanOptionsDataType::GCP_SCAN_OPTIONS,
16 )
17 .attributes(
18 GcpScanOptionsDataAttributes::new()
19 .vuln_containers_os(true)
20 .vuln_host_os(true),
21 ),
22 );
23 let configuration = datadog::Configuration::new();
24 let api = AgentlessScanningAPI::with_config(configuration);
25 let resp = api.create_gcp_scan_options(body).await;
26 if let Ok(value) = resp {
27 println!("{:#?}", value);
28 } else {
29 println!("{:#?}", resp.unwrap_err());
30 }
31}Sourcepub fn vuln_containers_os(self, value: bool) -> Self
pub fn vuln_containers_os(self, value: bool) -> Self
Examples found in repository?
examples/v2_agentless-scanning_CreateGcpScanOptions.rs (line 19)
11async fn main() {
12 let body = GcpScanOptions::new().data(
13 GcpScanOptionsData::new(
14 "new-project".to_string(),
15 GcpScanOptionsDataType::GCP_SCAN_OPTIONS,
16 )
17 .attributes(
18 GcpScanOptionsDataAttributes::new()
19 .vuln_containers_os(true)
20 .vuln_host_os(true),
21 ),
22 );
23 let configuration = datadog::Configuration::new();
24 let api = AgentlessScanningAPI::with_config(configuration);
25 let resp = api.create_gcp_scan_options(body).await;
26 if let Ok(value) = resp {
27 println!("{:#?}", value);
28 } else {
29 println!("{:#?}", resp.unwrap_err());
30 }
31}Sourcepub fn vuln_host_os(self, value: bool) -> Self
pub fn vuln_host_os(self, value: bool) -> Self
Examples found in repository?
examples/v2_agentless-scanning_CreateGcpScanOptions.rs (line 20)
11async fn main() {
12 let body = GcpScanOptions::new().data(
13 GcpScanOptionsData::new(
14 "new-project".to_string(),
15 GcpScanOptionsDataType::GCP_SCAN_OPTIONS,
16 )
17 .attributes(
18 GcpScanOptionsDataAttributes::new()
19 .vuln_containers_os(true)
20 .vuln_host_os(true),
21 ),
22 );
23 let configuration = datadog::Configuration::new();
24 let api = AgentlessScanningAPI::with_config(configuration);
25 let resp = api.create_gcp_scan_options(body).await;
26 if let Ok(value) = resp {
27 println!("{:#?}", value);
28 } else {
29 println!("{:#?}", resp.unwrap_err());
30 }
31}pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for GcpScanOptionsDataAttributes
impl Clone for GcpScanOptionsDataAttributes
Source§fn clone(&self) -> GcpScanOptionsDataAttributes
fn clone(&self) -> GcpScanOptionsDataAttributes
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 GcpScanOptionsDataAttributes
impl Debug for GcpScanOptionsDataAttributes
Source§impl<'de> Deserialize<'de> for GcpScanOptionsDataAttributes
impl<'de> Deserialize<'de> for GcpScanOptionsDataAttributes
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GcpScanOptionsDataAttributes
impl PartialEq for GcpScanOptionsDataAttributes
Source§fn eq(&self, other: &GcpScanOptionsDataAttributes) -> bool
fn eq(&self, other: &GcpScanOptionsDataAttributes) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GcpScanOptionsDataAttributes
Auto Trait Implementations§
impl Freeze for GcpScanOptionsDataAttributes
impl RefUnwindSafe for GcpScanOptionsDataAttributes
impl Send for GcpScanOptionsDataAttributes
impl Sync for GcpScanOptionsDataAttributes
impl Unpin for GcpScanOptionsDataAttributes
impl UnwindSafe for GcpScanOptionsDataAttributes
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