A convenience library for executing queries and recovering results from Dune Analytics API.
shell
cargo add duners
```rust use std::env; use dotenv::dotenv; use duners::client::{DuneClient, DuneRequestError}; use serde::Deserialize;
// User must declare the expected query return fields and types!
struct ResultStruct { textfield: String, numberfield: String, datefield: String, listfield: String, }
async fn main() -> Result<(), DuneRequestError> {
dotenv().ok();
let dune = DuneClient::new(env::var("DUNEAPIKEY").unwrap());
let results = dune.refresh::