votesmart 0.2.2

A client wrapper for the Votesmart REST API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[derive(thiserror::Error, Debug)]
pub enum Error {
    #[error(transparent)]
    Io(#[from] std::io::Error),

    #[error("Failed to parse environment variable.  Ensure you have a VOTESMART_API_KEY set in your .env file")]
    Var(#[from] std::env::VarError),

    #[error(transparent)]
    Request(#[from] reqwest::Error),

    #[error("Failed to fetch from API")]
    Api,
}