use rbx_ds_cloud::api::datastore_api::list_data_stores;
use rbx_ds_cloud::api::endpoint_structs::ListDataStores;
use rbx_ds_cloud::api::response_structs::ListDataStoresResponse;
use reqwest::Response;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error> > {
let api_key = "API_KEY".to_string();
let universe_id: u64 = 0;
let limit: u64 = 10; let prefix: Option<String> = None; let cursor: Option<String> = None;
let lds_struct = ListDataStores {
universe_id,
api_key,
limit,
prefix,
cursor,
};
let res: Response = list_data_stores(&lds_struct).await?;
let json_response = res.json::<ListDataStoresResponse>().await?;
println!("{:#?}", json_response);
Ok(())
}