Skip to content

Openapi SDK Client lifetime issues in Rocket routes #3

@francescobianco

Description

@francescobianco

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions