mirror of
https://github.com/kristoferssolo/yoda-web.git
synced 2025-10-21 20:10:36 +00:00
21 lines
287 B
Rust
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(),
|
|
}
|
|
}
|
|
}
|