(&self, openapi: &mut utoipa::openapi::OpenApi)
| 129 | |
| 130 | impl Modify for SecurityAddon { |
| 131 | fn modify(&self, openapi: &mut utoipa::openapi::OpenApi) { |
| 132 | let components = openapi.components.get_or_insert_with(Components::new); |
| 133 | components.add_security_scheme( |
| 134 | "api_key", |
| 135 | SecurityScheme::ApiKey(ApiKey::Header(ApiKeyValue::new("rune"))), |
| 136 | ); |
| 137 | openapi.components = Some(components.clone()); |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | pub enum ClnrestProtocol { |
nothing calls this directly
no outgoing calls
no test coverage detected