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

Method new

crates/opencode-tui/src/components/dialogs/alert.rs:26–33  ·  view source on GitHub ↗
(title: &str, message: &str, alert_type: AlertType)

Source from the content-addressed store, hash-verified

24
25impl AlertDialog {
26 pub fn new(title: &str, message: &str, alert_type: AlertType) -> Self {
27 Self {
28 title: title.to_string(),
29 message: message.to_string(),
30 alert_type,
31 open: false,
32 }
33 }
34
35 pub fn info(message: &str) -> Self {
36 Self::new("Info", message, AlertType::Info)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected