#[non_exhaustive]pub struct SensitiveDataScannerConfigurationRelationships {
pub groups: Option<SensitiveDataScannerGroupList>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Relationships of the 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.groups: Option<SensitiveDataScannerGroupList>
List of groups, ordered.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl SensitiveDataScannerConfigurationRelationships
impl SensitiveDataScannerConfigurationRelationships
Sourcepub fn new() -> SensitiveDataScannerConfigurationRelationships
pub fn new() -> SensitiveDataScannerConfigurationRelationships
Examples found in repository?
examples/v2_sensitive-data-scanner_ReorderScanningGroups.rs (line 24)
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}
Sourcepub fn groups(self, value: SensitiveDataScannerGroupList) -> Self
pub fn groups(self, value: SensitiveDataScannerGroupList) -> Self
Examples found in repository?
examples/v2_sensitive-data-scanner_ReorderScanningGroups.rs (lines 24-30)
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 SensitiveDataScannerConfigurationRelationships
impl Clone for SensitiveDataScannerConfigurationRelationships
Source§fn clone(&self) -> SensitiveDataScannerConfigurationRelationships
fn clone(&self) -> SensitiveDataScannerConfigurationRelationships
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 SensitiveDataScannerConfigurationRelationships
impl<'de> Deserialize<'de> for SensitiveDataScannerConfigurationRelationships
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 SensitiveDataScannerConfigurationRelationships
impl PartialEq for SensitiveDataScannerConfigurationRelationships
Source§fn eq(&self, other: &SensitiveDataScannerConfigurationRelationships) -> bool
fn eq(&self, other: &SensitiveDataScannerConfigurationRelationships) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for SensitiveDataScannerConfigurationRelationships
Auto Trait Implementations§
impl Freeze for SensitiveDataScannerConfigurationRelationships
impl RefUnwindSafe for SensitiveDataScannerConfigurationRelationships
impl Send for SensitiveDataScannerConfigurationRelationships
impl Sync for SensitiveDataScannerConfigurationRelationships
impl Unpin for SensitiveDataScannerConfigurationRelationships
impl UnwindSafe for SensitiveDataScannerConfigurationRelationships
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