#[non_exhaustive]pub struct AwsScanOptionsUpdateData {
pub attributes: AwsScanOptionsUpdateAttributes,
pub id: String,
pub type_: AwsScanOptionsType,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Object for the scan options of a single AWS account.
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.attributes: AwsScanOptionsUpdateAttributes
Attributes for the AWS scan options to update.
id: String
The ID of the AWS account.
type_: AwsScanOptionsType
The type of the resource. The value should always be aws_scan_options
.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl AwsScanOptionsUpdateData
impl AwsScanOptionsUpdateData
Sourcepub fn new(
attributes: AwsScanOptionsUpdateAttributes,
id: String,
type_: AwsScanOptionsType,
) -> AwsScanOptionsUpdateData
pub fn new( attributes: AwsScanOptionsUpdateAttributes, id: String, type_: AwsScanOptionsType, ) -> AwsScanOptionsUpdateData
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 AwsScanOptionsUpdateData
impl Clone for AwsScanOptionsUpdateData
Source§fn clone(&self) -> AwsScanOptionsUpdateData
fn clone(&self) -> AwsScanOptionsUpdateData
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 AwsScanOptionsUpdateData
impl Debug for AwsScanOptionsUpdateData
Source§impl<'de> Deserialize<'de> for AwsScanOptionsUpdateData
impl<'de> Deserialize<'de> for AwsScanOptionsUpdateData
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 AwsScanOptionsUpdateData
impl PartialEq for AwsScanOptionsUpdateData
Source§impl Serialize for AwsScanOptionsUpdateData
impl Serialize for AwsScanOptionsUpdateData
impl StructuralPartialEq for AwsScanOptionsUpdateData
Auto Trait Implementations§
impl Freeze for AwsScanOptionsUpdateData
impl RefUnwindSafe for AwsScanOptionsUpdateData
impl Send for AwsScanOptionsUpdateData
impl Sync for AwsScanOptionsUpdateData
impl Unpin for AwsScanOptionsUpdateData
impl UnwindSafe for AwsScanOptionsUpdateData
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