ScaRequestDataAttributes

Struct ScaRequestDataAttributes 

Source
#[non_exhaustive]
pub struct ScaRequestDataAttributes { pub commit: Option<ScaRequestDataAttributesCommit>, pub dependencies: Option<Vec<ScaRequestDataAttributesDependenciesItems>>, pub env: Option<String>, pub files: Option<Vec<ScaRequestDataAttributesFilesItems>>, pub relations: Option<Vec<ScaRequestDataAttributesRelationsItems>>, pub repository: Option<ScaRequestDataAttributesRepository>, pub service: Option<String>, pub tags: Option<BTreeMap<String, String>>, pub vulnerabilities: Option<Vec<ScaRequestDataAttributesVulnerabilitiesItems>>, pub additional_properties: BTreeMap<String, Value>, /* private fields */ }

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.
§commit: Option<ScaRequestDataAttributesCommit>§dependencies: Option<Vec<ScaRequestDataAttributesDependenciesItems>>§env: Option<String>§files: Option<Vec<ScaRequestDataAttributesFilesItems>>§relations: Option<Vec<ScaRequestDataAttributesRelationsItems>>§repository: Option<ScaRequestDataAttributesRepository>§service: Option<String>§tags: Option<BTreeMap<String, String>>§vulnerabilities: Option<Vec<ScaRequestDataAttributesVulnerabilitiesItems>>§additional_properties: BTreeMap<String, Value>

Implementations§

Source§

impl ScaRequestDataAttributes

Source

pub fn new() -> ScaRequestDataAttributes

Examples found in repository?
examples/v2_static-analysis_CreateSCAResult.rs (line 28)
21async fn main() {
22    let body =
23        ScaRequest
24        ::new().data(
25            ScaRequestData::new(
26                ScaRequestDataType::SCAREQUESTS,
27            ).attributes(
28                ScaRequestDataAttributes::new()
29                    .commit(ScaRequestDataAttributesCommit::new())
30                    .dependencies(
31                        vec![
32                            ScaRequestDataAttributesDependenciesItems::new()
33                                .exclusions(vec![])
34                                .locations(
35                                    vec![
36                                        ScaRequestDataAttributesDependenciesItemsLocationsItems::new()
37                                            .block(
38                                                ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition
39                                                ::new()
40                                                    .end(
41                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
42                                                        ::new(),
43                                                    )
44                                                    .start(
45                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
46                                                        ::new(),
47                                                    ),
48                                            )
49                                            .name(
50                                                ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition
51                                                ::new()
52                                                    .end(
53                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
54                                                        ::new(),
55                                                    )
56                                                    .start(
57                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
58                                                        ::new(),
59                                                    ),
60                                            )
61                                            .namespace(
62                                                ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition
63                                                ::new()
64                                                    .end(
65                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
66                                                        ::new(),
67                                                    )
68                                                    .start(
69                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
70                                                        ::new(),
71                                                    ),
72                                            )
73                                            .version(
74                                                ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition
75                                                ::new()
76                                                    .end(
77                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
78                                                        ::new(),
79                                                    )
80                                                    .start(
81                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
82                                                        ::new(),
83                                                    ),
84                                            )
85                                    ],
86                                )
87                                .reachable_symbol_properties(
88                                    vec![
89                                        ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems::new()
90                                    ],
91                                )
92                        ],
93                    )
94                    .files(vec![ScaRequestDataAttributesFilesItems::new()])
95                    .relations(vec![ScaRequestDataAttributesRelationsItems::new().depends_on(vec![])])
96                    .repository(ScaRequestDataAttributesRepository::new())
97                    .vulnerabilities(
98                        vec![
99                            ScaRequestDataAttributesVulnerabilitiesItems
100                            ::new().affects(vec![ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems::new()])
101                        ],
102                    ),
103            ),
104        );
105    let mut configuration = datadog::Configuration::new();
106    configuration.set_unstable_operation_enabled("v2.CreateSCAResult", true);
107    let api = StaticAnalysisAPI::with_config(configuration);
108    let resp = api.create_sca_result(body).await;
109    if let Ok(value) = resp {
110        println!("{:#?}", value);
111    } else {
112        println!("{:#?}", resp.unwrap_err());
113    }
114}
Source

pub fn commit(self, value: ScaRequestDataAttributesCommit) -> Self

Examples found in repository?
examples/v2_static-analysis_CreateSCAResult.rs (line 29)
21async fn main() {
22    let body =
23        ScaRequest
24        ::new().data(
25            ScaRequestData::new(
26                ScaRequestDataType::SCAREQUESTS,
27            ).attributes(
28                ScaRequestDataAttributes::new()
29                    .commit(ScaRequestDataAttributesCommit::new())
30                    .dependencies(
31                        vec![
32                            ScaRequestDataAttributesDependenciesItems::new()
33                                .exclusions(vec![])
34                                .locations(
35                                    vec![
36                                        ScaRequestDataAttributesDependenciesItemsLocationsItems::new()
37                                            .block(
38                                                ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition
39                                                ::new()
40                                                    .end(
41                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
42                                                        ::new(),
43                                                    )
44                                                    .start(
45                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
46                                                        ::new(),
47                                                    ),
48                                            )
49                                            .name(
50                                                ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition
51                                                ::new()
52                                                    .end(
53                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
54                                                        ::new(),
55                                                    )
56                                                    .start(
57                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
58                                                        ::new(),
59                                                    ),
60                                            )
61                                            .namespace(
62                                                ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition
63                                                ::new()
64                                                    .end(
65                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
66                                                        ::new(),
67                                                    )
68                                                    .start(
69                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
70                                                        ::new(),
71                                                    ),
72                                            )
73                                            .version(
74                                                ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition
75                                                ::new()
76                                                    .end(
77                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
78                                                        ::new(),
79                                                    )
80                                                    .start(
81                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
82                                                        ::new(),
83                                                    ),
84                                            )
85                                    ],
86                                )
87                                .reachable_symbol_properties(
88                                    vec![
89                                        ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems::new()
90                                    ],
91                                )
92                        ],
93                    )
94                    .files(vec![ScaRequestDataAttributesFilesItems::new()])
95                    .relations(vec![ScaRequestDataAttributesRelationsItems::new().depends_on(vec![])])
96                    .repository(ScaRequestDataAttributesRepository::new())
97                    .vulnerabilities(
98                        vec![
99                            ScaRequestDataAttributesVulnerabilitiesItems
100                            ::new().affects(vec![ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems::new()])
101                        ],
102                    ),
103            ),
104        );
105    let mut configuration = datadog::Configuration::new();
106    configuration.set_unstable_operation_enabled("v2.CreateSCAResult", true);
107    let api = StaticAnalysisAPI::with_config(configuration);
108    let resp = api.create_sca_result(body).await;
109    if let Ok(value) = resp {
110        println!("{:#?}", value);
111    } else {
112        println!("{:#?}", resp.unwrap_err());
113    }
114}
Source

pub fn dependencies( self, value: Vec<ScaRequestDataAttributesDependenciesItems>, ) -> Self

Examples found in repository?
examples/v2_static-analysis_CreateSCAResult.rs (lines 30-93)
21async fn main() {
22    let body =
23        ScaRequest
24        ::new().data(
25            ScaRequestData::new(
26                ScaRequestDataType::SCAREQUESTS,
27            ).attributes(
28                ScaRequestDataAttributes::new()
29                    .commit(ScaRequestDataAttributesCommit::new())
30                    .dependencies(
31                        vec![
32                            ScaRequestDataAttributesDependenciesItems::new()
33                                .exclusions(vec![])
34                                .locations(
35                                    vec![
36                                        ScaRequestDataAttributesDependenciesItemsLocationsItems::new()
37                                            .block(
38                                                ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition
39                                                ::new()
40                                                    .end(
41                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
42                                                        ::new(),
43                                                    )
44                                                    .start(
45                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
46                                                        ::new(),
47                                                    ),
48                                            )
49                                            .name(
50                                                ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition
51                                                ::new()
52                                                    .end(
53                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
54                                                        ::new(),
55                                                    )
56                                                    .start(
57                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
58                                                        ::new(),
59                                                    ),
60                                            )
61                                            .namespace(
62                                                ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition
63                                                ::new()
64                                                    .end(
65                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
66                                                        ::new(),
67                                                    )
68                                                    .start(
69                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
70                                                        ::new(),
71                                                    ),
72                                            )
73                                            .version(
74                                                ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition
75                                                ::new()
76                                                    .end(
77                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
78                                                        ::new(),
79                                                    )
80                                                    .start(
81                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
82                                                        ::new(),
83                                                    ),
84                                            )
85                                    ],
86                                )
87                                .reachable_symbol_properties(
88                                    vec![
89                                        ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems::new()
90                                    ],
91                                )
92                        ],
93                    )
94                    .files(vec![ScaRequestDataAttributesFilesItems::new()])
95                    .relations(vec![ScaRequestDataAttributesRelationsItems::new().depends_on(vec![])])
96                    .repository(ScaRequestDataAttributesRepository::new())
97                    .vulnerabilities(
98                        vec![
99                            ScaRequestDataAttributesVulnerabilitiesItems
100                            ::new().affects(vec![ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems::new()])
101                        ],
102                    ),
103            ),
104        );
105    let mut configuration = datadog::Configuration::new();
106    configuration.set_unstable_operation_enabled("v2.CreateSCAResult", true);
107    let api = StaticAnalysisAPI::with_config(configuration);
108    let resp = api.create_sca_result(body).await;
109    if let Ok(value) = resp {
110        println!("{:#?}", value);
111    } else {
112        println!("{:#?}", resp.unwrap_err());
113    }
114}
Source

pub fn env(self, value: String) -> Self

Source

pub fn files(self, value: Vec<ScaRequestDataAttributesFilesItems>) -> Self

Examples found in repository?
examples/v2_static-analysis_CreateSCAResult.rs (line 94)
21async fn main() {
22    let body =
23        ScaRequest
24        ::new().data(
25            ScaRequestData::new(
26                ScaRequestDataType::SCAREQUESTS,
27            ).attributes(
28                ScaRequestDataAttributes::new()
29                    .commit(ScaRequestDataAttributesCommit::new())
30                    .dependencies(
31                        vec![
32                            ScaRequestDataAttributesDependenciesItems::new()
33                                .exclusions(vec![])
34                                .locations(
35                                    vec![
36                                        ScaRequestDataAttributesDependenciesItemsLocationsItems::new()
37                                            .block(
38                                                ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition
39                                                ::new()
40                                                    .end(
41                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
42                                                        ::new(),
43                                                    )
44                                                    .start(
45                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
46                                                        ::new(),
47                                                    ),
48                                            )
49                                            .name(
50                                                ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition
51                                                ::new()
52                                                    .end(
53                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
54                                                        ::new(),
55                                                    )
56                                                    .start(
57                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
58                                                        ::new(),
59                                                    ),
60                                            )
61                                            .namespace(
62                                                ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition
63                                                ::new()
64                                                    .end(
65                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
66                                                        ::new(),
67                                                    )
68                                                    .start(
69                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
70                                                        ::new(),
71                                                    ),
72                                            )
73                                            .version(
74                                                ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition
75                                                ::new()
76                                                    .end(
77                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
78                                                        ::new(),
79                                                    )
80                                                    .start(
81                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
82                                                        ::new(),
83                                                    ),
84                                            )
85                                    ],
86                                )
87                                .reachable_symbol_properties(
88                                    vec![
89                                        ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems::new()
90                                    ],
91                                )
92                        ],
93                    )
94                    .files(vec![ScaRequestDataAttributesFilesItems::new()])
95                    .relations(vec![ScaRequestDataAttributesRelationsItems::new().depends_on(vec![])])
96                    .repository(ScaRequestDataAttributesRepository::new())
97                    .vulnerabilities(
98                        vec![
99                            ScaRequestDataAttributesVulnerabilitiesItems
100                            ::new().affects(vec![ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems::new()])
101                        ],
102                    ),
103            ),
104        );
105    let mut configuration = datadog::Configuration::new();
106    configuration.set_unstable_operation_enabled("v2.CreateSCAResult", true);
107    let api = StaticAnalysisAPI::with_config(configuration);
108    let resp = api.create_sca_result(body).await;
109    if let Ok(value) = resp {
110        println!("{:#?}", value);
111    } else {
112        println!("{:#?}", resp.unwrap_err());
113    }
114}
Source

pub fn relations( self, value: Vec<ScaRequestDataAttributesRelationsItems>, ) -> Self

Examples found in repository?
examples/v2_static-analysis_CreateSCAResult.rs (line 95)
21async fn main() {
22    let body =
23        ScaRequest
24        ::new().data(
25            ScaRequestData::new(
26                ScaRequestDataType::SCAREQUESTS,
27            ).attributes(
28                ScaRequestDataAttributes::new()
29                    .commit(ScaRequestDataAttributesCommit::new())
30                    .dependencies(
31                        vec![
32                            ScaRequestDataAttributesDependenciesItems::new()
33                                .exclusions(vec![])
34                                .locations(
35                                    vec![
36                                        ScaRequestDataAttributesDependenciesItemsLocationsItems::new()
37                                            .block(
38                                                ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition
39                                                ::new()
40                                                    .end(
41                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
42                                                        ::new(),
43                                                    )
44                                                    .start(
45                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
46                                                        ::new(),
47                                                    ),
48                                            )
49                                            .name(
50                                                ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition
51                                                ::new()
52                                                    .end(
53                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
54                                                        ::new(),
55                                                    )
56                                                    .start(
57                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
58                                                        ::new(),
59                                                    ),
60                                            )
61                                            .namespace(
62                                                ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition
63                                                ::new()
64                                                    .end(
65                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
66                                                        ::new(),
67                                                    )
68                                                    .start(
69                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
70                                                        ::new(),
71                                                    ),
72                                            )
73                                            .version(
74                                                ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition
75                                                ::new()
76                                                    .end(
77                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
78                                                        ::new(),
79                                                    )
80                                                    .start(
81                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
82                                                        ::new(),
83                                                    ),
84                                            )
85                                    ],
86                                )
87                                .reachable_symbol_properties(
88                                    vec![
89                                        ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems::new()
90                                    ],
91                                )
92                        ],
93                    )
94                    .files(vec![ScaRequestDataAttributesFilesItems::new()])
95                    .relations(vec![ScaRequestDataAttributesRelationsItems::new().depends_on(vec![])])
96                    .repository(ScaRequestDataAttributesRepository::new())
97                    .vulnerabilities(
98                        vec![
99                            ScaRequestDataAttributesVulnerabilitiesItems
100                            ::new().affects(vec![ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems::new()])
101                        ],
102                    ),
103            ),
104        );
105    let mut configuration = datadog::Configuration::new();
106    configuration.set_unstable_operation_enabled("v2.CreateSCAResult", true);
107    let api = StaticAnalysisAPI::with_config(configuration);
108    let resp = api.create_sca_result(body).await;
109    if let Ok(value) = resp {
110        println!("{:#?}", value);
111    } else {
112        println!("{:#?}", resp.unwrap_err());
113    }
114}
Source

pub fn repository(self, value: ScaRequestDataAttributesRepository) -> Self

Examples found in repository?
examples/v2_static-analysis_CreateSCAResult.rs (line 96)
21async fn main() {
22    let body =
23        ScaRequest
24        ::new().data(
25            ScaRequestData::new(
26                ScaRequestDataType::SCAREQUESTS,
27            ).attributes(
28                ScaRequestDataAttributes::new()
29                    .commit(ScaRequestDataAttributesCommit::new())
30                    .dependencies(
31                        vec![
32                            ScaRequestDataAttributesDependenciesItems::new()
33                                .exclusions(vec![])
34                                .locations(
35                                    vec![
36                                        ScaRequestDataAttributesDependenciesItemsLocationsItems::new()
37                                            .block(
38                                                ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition
39                                                ::new()
40                                                    .end(
41                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
42                                                        ::new(),
43                                                    )
44                                                    .start(
45                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
46                                                        ::new(),
47                                                    ),
48                                            )
49                                            .name(
50                                                ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition
51                                                ::new()
52                                                    .end(
53                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
54                                                        ::new(),
55                                                    )
56                                                    .start(
57                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
58                                                        ::new(),
59                                                    ),
60                                            )
61                                            .namespace(
62                                                ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition
63                                                ::new()
64                                                    .end(
65                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
66                                                        ::new(),
67                                                    )
68                                                    .start(
69                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
70                                                        ::new(),
71                                                    ),
72                                            )
73                                            .version(
74                                                ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition
75                                                ::new()
76                                                    .end(
77                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
78                                                        ::new(),
79                                                    )
80                                                    .start(
81                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
82                                                        ::new(),
83                                                    ),
84                                            )
85                                    ],
86                                )
87                                .reachable_symbol_properties(
88                                    vec![
89                                        ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems::new()
90                                    ],
91                                )
92                        ],
93                    )
94                    .files(vec![ScaRequestDataAttributesFilesItems::new()])
95                    .relations(vec![ScaRequestDataAttributesRelationsItems::new().depends_on(vec![])])
96                    .repository(ScaRequestDataAttributesRepository::new())
97                    .vulnerabilities(
98                        vec![
99                            ScaRequestDataAttributesVulnerabilitiesItems
100                            ::new().affects(vec![ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems::new()])
101                        ],
102                    ),
103            ),
104        );
105    let mut configuration = datadog::Configuration::new();
106    configuration.set_unstable_operation_enabled("v2.CreateSCAResult", true);
107    let api = StaticAnalysisAPI::with_config(configuration);
108    let resp = api.create_sca_result(body).await;
109    if let Ok(value) = resp {
110        println!("{:#?}", value);
111    } else {
112        println!("{:#?}", resp.unwrap_err());
113    }
114}
Source

pub fn service(self, value: String) -> Self

Source

pub fn tags(self, value: BTreeMap<String, String>) -> Self

Source

pub fn vulnerabilities( self, value: Vec<ScaRequestDataAttributesVulnerabilitiesItems>, ) -> Self

Examples found in repository?
examples/v2_static-analysis_CreateSCAResult.rs (lines 97-102)
21async fn main() {
22    let body =
23        ScaRequest
24        ::new().data(
25            ScaRequestData::new(
26                ScaRequestDataType::SCAREQUESTS,
27            ).attributes(
28                ScaRequestDataAttributes::new()
29                    .commit(ScaRequestDataAttributesCommit::new())
30                    .dependencies(
31                        vec![
32                            ScaRequestDataAttributesDependenciesItems::new()
33                                .exclusions(vec![])
34                                .locations(
35                                    vec![
36                                        ScaRequestDataAttributesDependenciesItemsLocationsItems::new()
37                                            .block(
38                                                ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition
39                                                ::new()
40                                                    .end(
41                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
42                                                        ::new(),
43                                                    )
44                                                    .start(
45                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
46                                                        ::new(),
47                                                    ),
48                                            )
49                                            .name(
50                                                ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition
51                                                ::new()
52                                                    .end(
53                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
54                                                        ::new(),
55                                                    )
56                                                    .start(
57                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
58                                                        ::new(),
59                                                    ),
60                                            )
61                                            .namespace(
62                                                ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition
63                                                ::new()
64                                                    .end(
65                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
66                                                        ::new(),
67                                                    )
68                                                    .start(
69                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
70                                                        ::new(),
71                                                    ),
72                                            )
73                                            .version(
74                                                ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition
75                                                ::new()
76                                                    .end(
77                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
78                                                        ::new(),
79                                                    )
80                                                    .start(
81                                                        ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
82                                                        ::new(),
83                                                    ),
84                                            )
85                                    ],
86                                )
87                                .reachable_symbol_properties(
88                                    vec![
89                                        ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems::new()
90                                    ],
91                                )
92                        ],
93                    )
94                    .files(vec![ScaRequestDataAttributesFilesItems::new()])
95                    .relations(vec![ScaRequestDataAttributesRelationsItems::new().depends_on(vec![])])
96                    .repository(ScaRequestDataAttributesRepository::new())
97                    .vulnerabilities(
98                        vec![
99                            ScaRequestDataAttributesVulnerabilitiesItems
100                            ::new().affects(vec![ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems::new()])
101                        ],
102                    ),
103            ),
104        );
105    let mut configuration = datadog::Configuration::new();
106    configuration.set_unstable_operation_enabled("v2.CreateSCAResult", true);
107    let api = StaticAnalysisAPI::with_config(configuration);
108    let resp = api.create_sca_result(body).await;
109    if let Ok(value) = resp {
110        println!("{:#?}", value);
111    } else {
112        println!("{:#?}", resp.unwrap_err());
113    }
114}
Source

pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self

Trait Implementations§

Source§

impl Clone for ScaRequestDataAttributes

Source§

fn clone(&self) -> ScaRequestDataAttributes

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ScaRequestDataAttributes

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ScaRequestDataAttributes

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ScaRequestDataAttributes

Source§

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 ScaRequestDataAttributes

Source§

fn eq(&self, other: &ScaRequestDataAttributes) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ScaRequestDataAttributes

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ScaRequestDataAttributes

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,