pub struct RequesttyBackend;Expand description
Requestty backend for interactive CLI prompts.
This backend uses the requestty library to present questions
to the user in a command-line interface.
Implementations§
Trait Implementations§
Source§impl Clone for RequesttyBackend
impl Clone for RequesttyBackend
Source§fn clone(&self) -> RequesttyBackend
fn clone(&self) -> RequesttyBackend
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RequesttyBackend
impl Debug for RequesttyBackend
Source§impl Default for RequesttyBackend
impl Default for RequesttyBackend
Source§fn default() -> RequesttyBackend
fn default() -> RequesttyBackend
Returns the “default value” for a type. Read more
Source§impl SurveyBackend for RequesttyBackend
impl SurveyBackend for RequesttyBackend
Source§type Error = RequesttyError
type Error = RequesttyError
The error type for this backend.
Source§fn collect(
&self,
definition: &SurveyDefinition,
validate: &dyn Fn(&ResponseValue, &Responses, &ResponsePath) -> Result<(), String>,
) -> Result<Responses, Self::Error>
fn collect( &self, definition: &SurveyDefinition, validate: &dyn Fn(&ResponseValue, &Responses, &ResponsePath) -> Result<(), String>, ) -> Result<Responses, Self::Error>
Collect responses for a survey. Read more
Auto Trait Implementations§
impl Freeze for RequesttyBackend
impl RefUnwindSafe for RequesttyBackend
impl Send for RequesttyBackend
impl Sync for RequesttyBackend
impl Unpin for RequesttyBackend
impl UnwindSafe for RequesttyBackend
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more