openapi-rust-sdk icon indicating copy to clipboard operation
openapi-rust-sdk copied to clipboard

Openapi SDK Client lifetime issues in Rocket routes

Open francescobianco opened this issue 1 year ago • 0 comments

When trying to store Client in Rocket state:

#[launch]
fn rocket() -> _ {
    rocket::build().manage(openapi_sdk::Client::new("API_KEY"))
}

Compiler complains about lifetimes. Need guidance on using Openapi SDK client in Rocket-managed state safely.

francescobianco avatar Oct 01 '25 09:10 francescobianco