calendar_client 0.1.1

client to use trading economics api
Documentation
#[cfg(feature = "http")]
mod http;
#[cfg(feature = "ws")]
mod ws;

#[derive(Debug, Clone)]
pub struct Client {
    #[cfg(feature = "http")]
    client: reqwest::Client,
    key: String,
    secret: String,
}

impl Client {
    pub fn new(key: impl Into<String>, secret: impl Into<String>) -> Client {
        Client {
            #[cfg(feature = "http")]
            client: reqwest::Client::new(),
            key: key.into(),
            secret: secret.into(),
        }
    }
}