Struct pinentry_rs::PinentryBuilder
source · [−]pub struct PinentryBuilder { /* private fields */ }
Expand description
Builder for pinentry execution
Implementations
sourceimpl PinentryBuilder
impl PinentryBuilder
sourcepub fn description(self, desc: String) -> Self
pub fn description(self, desc: String) -> Self
Set the descriptive text of the prompt
sourcepub fn error_text(self, error_text: String) -> Self
pub fn error_text(self, error_text: String) -> Self
Set the text that gets the displayed in case of error
sourcepub fn exe(self, exe: String) -> Self
pub fn exe(self, exe: String) -> Self
Override the path to the pinentry
executable (by default just pinentry
, looked up using PATH
environment
variable)
sourcepub fn label_cancel(self, label: String) -> Self
pub fn label_cancel(self, label: String) -> Self
Set the label of the ‘Cancel’ button
sourcepub fn label_notok(self, label: String) -> Self
pub fn label_notok(self, label: String) -> Self
Set the label of the ‘Not OK’ button
sourcepub fn window_title(self, title: String) -> Self
pub fn window_title(self, title: String) -> Self
Set the window title of the prompt
sourcepub fn confirm_yes_no(self) -> Result<bool>
pub fn confirm_yes_no(self) -> Result<bool>
Prompt for confirmation
The text for the confirmation should be set using .description()
sourcepub fn show_message(self) -> Result<()>
pub fn show_message(self) -> Result<()>
Show a message
The text for the message should be set using .description()
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PinentryBuilder
impl Send for PinentryBuilder
impl Sync for PinentryBuilder
impl Unpin for PinentryBuilder
impl UnwindSafe for PinentryBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more