octopust 0.2.0

A high-performance, idiomatic Rust client for the Octopus Energy API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use octopust::Client;

#[tokio::main]
async fn main() {
    let client = Client::new("YOUR_API_KEY");
    match client.list_products().await {
        Ok(products) => {
            for product in products {
                println!("{:?}", product);
            }
        }
        Err(e) => eprintln!("Error: {:?}", e),
    }
}