yoda-web/src/state.rs

21 lines
287 B
Rust

use reqwest::Client;
#[derive(Clone)]
pub struct AppState {
pub client: Client,
}
impl AppState {
pub fn new() -> Self {
Self::default()
}
}
impl Default for AppState {
fn default() -> Self {
Self {
client: Client::new(),
}
}
}