MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / new

Method new

crates/opencode-tui/src/components/dialogs/provider.rs:36–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34
35impl ProviderDialog {
36 pub fn new() -> Self {
37 Self {
38 providers: Vec::new(),
39 state: ListState::default(),
40 open: false,
41 selected_provider: None,
42 api_key_input: String::new(),
43 input_mode: false,
44 }
45 }
46
47 pub fn open(&mut self) {
48 self.open = true;

Callers

nothing calls this directly

Calls 1

newFunction · 0.85

Tested by

no test coverage detected