Crate octopust

Source
Expand description

§octopust

A high-performance, idiomatic Rust client for the Octopus Energy API.

§Example

use octopust::{Client, models::ProductQuery};

#[tokio::main]
async fn main() {
    let client = Client::new("API_KEY");
    let products = client.list_products(ProductQuery { ..Default::default() }).await.unwrap();
    println!("{:?}", products);
}

Re-exports§

pub use client::Client;
pub use error::OctopustError;

Modules§

api
client
error
models