1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
pub mod admin; pub mod auth; pub mod fs; pub mod me; pub struct Client { host: String, client: reqwest::Client, token: Option<String>, } impl Client { pub fn new(host: String) -> Self { Self { host, client: reqwest::Client::new(), token: None, } } }