MCPcopy Create free account
hub / github.com/ElementsProject/lightning / modify

Method modify

plugins/rest-plugin/src/structs.rs:131–138  ·  view source on GitHub ↗
(&self, openapi: &mut utoipa::openapi::OpenApi)

Source from the content-addressed store, hash-verified

129
130impl 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
141pub enum ClnrestProtocol {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected