#[non_exhaustive]pub struct SensitiveDataScannerConfigRequest {
pub data: SensitiveDataScannerReorderConfig,
pub meta: SensitiveDataScannerMetaVersionOnly,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Group reorder request.
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: SensitiveDataScannerReorderConfig
Data related to the reordering of scanning groups.
meta: SensitiveDataScannerMetaVersionOnly
Meta payload containing information about the API.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl SensitiveDataScannerConfigRequest
impl SensitiveDataScannerConfigRequest
Sourcepub fn new(
data: SensitiveDataScannerReorderConfig,
meta: SensitiveDataScannerMetaVersionOnly,
) -> SensitiveDataScannerConfigRequest
pub fn new( data: SensitiveDataScannerReorderConfig, meta: SensitiveDataScannerMetaVersionOnly, ) -> SensitiveDataScannerConfigRequest
Examples found in repository?
examples/v2_sensitive-data-scanner_ReorderScanningGroups.rs (lines 20-34)
14async fn main() {
15 // there is a valid "scanning_group" in the system
16 let group_data_id = std::env::var("GROUP_DATA_ID").unwrap();
17
18 // a valid "configuration" in the system
19 let configuration_data_id = std::env::var("CONFIGURATION_DATA_ID").unwrap();
20 let body = SensitiveDataScannerConfigRequest::new(
21 SensitiveDataScannerReorderConfig::new()
22 .id(configuration_data_id.clone())
23 .relationships(
24 SensitiveDataScannerConfigurationRelationships::new().groups(
25 SensitiveDataScannerGroupList::new().data(vec![
26 SensitiveDataScannerGroupItem::new()
27 .id(group_data_id.clone())
28 .type_(SensitiveDataScannerGroupType::SENSITIVE_DATA_SCANNER_GROUP),
29 ]),
30 ),
31 )
32 .type_(SensitiveDataScannerConfigurationType::SENSITIVE_DATA_SCANNER_CONFIGURATIONS),
33 SensitiveDataScannerMetaVersionOnly::new(),
34 );
35 let configuration = datadog::Configuration::new();
36 let api = SensitiveDataScannerAPI::with_config(configuration);
37 let resp = api.reorder_scanning_groups(body).await;
38 if let Ok(value) = resp {
39 println!("{:#?}", value);
40 } else {
41 println!("{:#?}", resp.unwrap_err());
42 }
43}
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for SensitiveDataScannerConfigRequest
impl Clone for SensitiveDataScannerConfigRequest
Source§fn clone(&self) -> SensitiveDataScannerConfigRequest
fn clone(&self) -> SensitiveDataScannerConfigRequest
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<'de> Deserialize<'de> for SensitiveDataScannerConfigRequest
impl<'de> Deserialize<'de> for SensitiveDataScannerConfigRequest
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 SensitiveDataScannerConfigRequest
impl PartialEq for SensitiveDataScannerConfigRequest
Source§fn eq(&self, other: &SensitiveDataScannerConfigRequest) -> bool
fn eq(&self, other: &SensitiveDataScannerConfigRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for SensitiveDataScannerConfigRequest
Auto Trait Implementations§
impl Freeze for SensitiveDataScannerConfigRequest
impl RefUnwindSafe for SensitiveDataScannerConfigRequest
impl Send for SensitiveDataScannerConfigRequest
impl Sync for SensitiveDataScannerConfigRequest
impl Unpin for SensitiveDataScannerConfigRequest
impl UnwindSafe for SensitiveDataScannerConfigRequest
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