#[non_exhaustive]pub struct AwsScanOptionsUpdateRequest {
pub data: AwsScanOptionsUpdateData,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Request object that includes the scan options to update.
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.data: AwsScanOptionsUpdateData
Object for the scan options of a single AWS account.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl AwsScanOptionsUpdateRequest
impl AwsScanOptionsUpdateRequest
Sourcepub fn new(data: AwsScanOptionsUpdateData) -> AwsScanOptionsUpdateRequest
pub fn new(data: AwsScanOptionsUpdateData) -> AwsScanOptionsUpdateRequest
Examples found in repository?
examples/v2_agentless-scanning_UpdateAwsScanOptions.rs (lines 11-18)
10async fn main() {
11 let body = AwsScanOptionsUpdateRequest::new(AwsScanOptionsUpdateData::new(
12 AwsScanOptionsUpdateAttributes::new()
13 .lambda(false)
14 .vuln_containers_os(true)
15 .vuln_host_os(true),
16 "000000000002".to_string(),
17 AwsScanOptionsType::AWS_SCAN_OPTIONS,
18 ));
19 let configuration = datadog::Configuration::new();
20 let api = AgentlessScanningAPI::with_config(configuration);
21 let resp = api
22 .update_aws_scan_options("000000000002".to_string(), body)
23 .await;
24 if let Ok(value) = resp {
25 println!("{:#?}", value);
26 } else {
27 println!("{:#?}", resp.unwrap_err());
28 }
29}
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for AwsScanOptionsUpdateRequest
impl Clone for AwsScanOptionsUpdateRequest
Source§fn clone(&self) -> AwsScanOptionsUpdateRequest
fn clone(&self) -> AwsScanOptionsUpdateRequest
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 AwsScanOptionsUpdateRequest
impl Debug for AwsScanOptionsUpdateRequest
Source§impl<'de> Deserialize<'de> for AwsScanOptionsUpdateRequest
impl<'de> Deserialize<'de> for AwsScanOptionsUpdateRequest
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
impl StructuralPartialEq for AwsScanOptionsUpdateRequest
Auto Trait Implementations§
impl Freeze for AwsScanOptionsUpdateRequest
impl RefUnwindSafe for AwsScanOptionsUpdateRequest
impl Send for AwsScanOptionsUpdateRequest
impl Sync for AwsScanOptionsUpdateRequest
impl Unpin for AwsScanOptionsUpdateRequest
impl UnwindSafe for AwsScanOptionsUpdateRequest
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