use crate::service::AdminService; use crank_runtime::RequestRateLimiter; use std::net::IpAddr; #[derive(Clone)] pub struct AppState { pub service: AdminService, pub api_rate_limiter: RequestRateLimiter, /// Immediate peer IPs allowed to supply `X-Real-IP` / `X-Forwarded-For`. /// /// Only configure reverse proxies that overwrite these headers. When the /// peer is absent or not listed the real TCP peer address is used. pub trusted_proxy_ips: Vec, }