1 2 3 4 5 6 7 8 9 10 11 12
use crate::server::context::ServiceContext; #[derive(Clone)] pub(super) struct ApiState { ctx: ServiceContext, } impl ApiState { pub fn new(ctx: ServiceContext) -> Self { Self { ctx } } }