From 474d92046f17a98f8979e55edaf75ca867d85b86 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Tue, 8 Jan 2019 17:16:49 +0000 Subject: Add the Password dialog box --- src/backends/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/backends/mod.rs') diff --git a/src/backends/mod.rs b/src/backends/mod.rs index fd0ddcc..1d555e3 100644 --- a/src/backends/mod.rs +++ b/src/backends/mod.rs @@ -23,6 +23,9 @@ pub trait Backend { /// Shows the given message dialog. fn show_message(&self, message: &super::Message) -> Result<()>; + /// Shows the given password dialog and returns the password. + fn show_password(&self, password: &super::Password) -> Result>; + /// Shows the given question dialog and returns the choice. fn show_question(&self, question: &super::Question) -> Result; } -- cgit v1.2.1