v2_datasets_GetAllDatasets/
v2_datasets_GetAllDatasets.rs

1// Get all datasets returns "OK" response
2use datadog_api_client::datadog;
3use datadog_api_client::datadogV2::api_datasets::DatasetsAPI;
4
5#[tokio::main]
6async fn main() {
7    let mut configuration = datadog::Configuration::new();
8    configuration.set_unstable_operation_enabled("v2.GetAllDatasets", true);
9    let api = DatasetsAPI::with_config(configuration);
10    let resp = api.get_all_datasets().await;
11    if let Ok(value) = resp {
12        println!("{:#?}", value);
13    } else {
14        println!("{:#?}", resp.unwrap_err());
15    }
16}