MCPcopy Create free account
hub / github.com/bajrangCoder/setu / ensure_inputs

Method ensure_inputs

src/components/auth_editor.rs:366–379  ·  view source on GitHub ↗

Initialize inputs lazily

(&mut self, window: &mut Window, cx: &mut Context<Self>)

Source from the content-addressed store, hash-verified

364 .unwrap_or_default(),
365 token: self
366 .token_input
367 .as_ref()
368 .map(|i| i.read(cx).text().to_string())
369 .unwrap_or_default(),
370 api_key_name: self
371 .api_key_name_input
372 .as_ref()
373 .map(|i| i.read(cx).text().to_string())
374 .unwrap_or_default(),
375 api_key_value: self
376 .api_key_value_input
377 .as_ref()
378 .map(|i| i.read(cx).text().to_string())
379 .unwrap_or_default(),
380 api_key_in_header: self.api_key_location == ApiKeyLocation::Header,
381 }
382 }

Callers 1

renderMethod · 0.80

Calls 1

newMethod · 0.45

Tested by

no test coverage detected