1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
pub mod api;
pub mod structs;
pub mod tests;
pub mod utils;

pub const GOVEE_ROOT_URL: &str = "https://developer-api.govee.com";

#[derive(Debug)]
pub struct GoveeClient {
    pub govee_root_url: String,
    pub govee_api_key: String,
}

impl GoveeClient {
    pub fn new(api_key: &str) -> GoveeClient {
        GoveeClient {
            govee_api_key: api_key.to_string(),
            govee_root_url: GOVEE_ROOT_URL.to_string(),
        }
    }
}