use crate::client::AmagiClient;
use crate::config::ServeConfig;
#[derive(Debug, Clone)]
pub struct AppState {
pub app_name: &'static str,
pub version: &'static str,
pub serve: ServeConfig,
pub client: AmagiClient,
}
impl AppState {
pub fn new(
app_name: &'static str,
version: &'static str,
serve: ServeConfig,
client: AmagiClient,
) -> Self {
Self {
app_name,
version,
serve,
client,
}
}
}