Docs.rs
amber-client-0.2.1
amber-client 0.2.1
Permalink
Docs.rs crate page
BSD-3-Clause
Links
Homepage
Repository
crates.io
Source
Owners
brendanhoran
Dependencies
anyhow ^1.0.75
normal
chrono ^0.4.30
normal
clap ^4.4.11
normal
config ^0.13.1
normal
csv ^1.1
normal
dateparser ^0.2.0
normal
iso8601-timestamp ^0.2.16
normal
reqwest ^0.11
normal
serde ^1.0
normal
serde_json ^1.0
normal
thiserror ^1.0.48
normal
tokio ^1
normal
claim ^0.5.0
dev
surf ^2.3.2
dev
tokio ^1
dev
wiremock ^0.5.19
dev
Versions
20.88%
of the crate is documented
Platform
i686-pc-windows-msvc
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
amber_
client
0.2.1
All Items
Crate Items
Modules
Functions
Crate
amber_client
Copy item path
Source
Modules
§
app_
config
rest_
client
Functions
§
get_
prices
Function to get a window of prices. Based the users input.
get_
renewables
Function to get percentage of renewables used in the grid for a given state and a given window.
get_
site_
data
Function to get the Site data
get_
usage_
by_
date
Function to retrieve historical price data based on a date range supplied by the user.
get_
user_
site_
id
Function to get and return only the users Site ID.
parse_
date_
naive
Function to validate the user has supplied the date in the correct format and that the date is a valid calender date. Will exit the application of the date format is wrong or invalid.
write_
data_
as_
csv_
to_
file
CVS writer for historical data