squarecloud 0.1.1

Async Rust client for the SquareCloud API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::sync::LazyLock;

pub struct Settings {
    pub api_token: String,
}

impl Settings {
    fn load() -> Self {
        Settings {
            api_token: dotenvy::var("API_TOKEN")
                .expect("Missing environment variable 'API_TOKEN'"),
        }
    }
}

pub static SETTINGS: LazyLock<Settings> = LazyLock::new(Settings::load);