Public declaration syntax from harness-tui-kit/src/components/hitl/confirmation.rs Original source SHA-256: 7dca1fc86ba806da619091aac08dd2d0d8e9efd2d9dd42d18642387f0aef209c Function bodies and constant values are omitted. This is not the complete implementation. Source line 62 #[derive(Debug, Clone, Copy, PartialEq, Eq, Default)] pub enum ConfirmButton { /// The yes/accept action button. Yes, /// The no/cancel action button (default focus). #[default] No, } Source line 90 #[derive(Debug, Clone)] pub struct ConfirmationPromptState { /// Which button is focused. pub focused: ConfirmButton, /// Whether the user has made a decision (and what it was). pub decision: Option, /// Whether the prompt is visible. pub visible: bool } Source line 114 #[must_use] pub fn new() -> Self; Source line 123 pub fn focus_yes(&mut self); Source line 128 pub fn focus_no(&mut self); Source line 133 pub fn toggle_focus(&mut self); Source line 143 pub fn confirm(&mut self); Source line 148 pub fn reset(&mut self); Source line 153 pub fn show(&mut self); Source line 160 pub fn hide(&mut self); Source line 208 #[derive(Debug, Clone)] pub struct ConfirmationPrompt<'a> { } Source line 220 #[must_use] pub fn new(message: &'a str) -> Self; Source line 230 #[must_use] pub fn theme(mut self, theme: &'a Theme) -> Self; Source line 239 #[must_use] pub fn dangerous(mut self, dangerous: bool) -> Self;