Trait serde_spaniel::prompt::PromptRequester
source · [−]pub trait PromptRequester: PromptResponder {
fn is_interactive(&self) -> bool;
fn request(
&mut self,
kind: RequestKind,
prompt: &str,
variants: &'static [&'static str]
) -> Result<String>;
fn report(&mut self, kind: ReportKind, msg: &str) -> Result<()>;
}
Expand description
Trait for prompts which can obtain input.
Required Methods
fn is_interactive(&self) -> bool
fn is_interactive(&self) -> bool
Returns true if the prompt is currently interactive.
Requests a response given a prompt message and optional variants.