pub struct Questionnaire { /* private fields */ }Implementations§
Source§impl Questionnaire
impl Questionnaire
pub fn read_answer_sheet_file( &self, path: impl AsRef<Path>, ) -> Result<RawAnswers, Vec<AnswerSheetDiagnostic>>
pub fn read_answer_sheet_stdin_with( &self, reader: &dyn StdinReader, ) -> Result<RawAnswers, Vec<AnswerSheetDiagnostic>>
pub fn collect_interactive(&self) -> Result<RawAnswers, InputError>
pub fn collect_interactive_from( &self, sources: &InputSources, ) -> Result<RawAnswers, InputError>
pub fn collect_interactive_with_terminal<T: TerminalIO + 'static>( &self, terminal: Arc<T>, ) -> Result<RawAnswers, InputError>
pub fn collect_interactive_with_terminal_from<T: TerminalIO + 'static>( &self, terminal: Arc<T>, sources: &InputSources, ) -> Result<RawAnswers, InputError>
Source§impl Questionnaire
impl Questionnaire
pub fn decode_answers( &self, raw: &RawAnswers, ) -> Result<Answers, Vec<ValidationDiagnostic>>
pub fn decode_answers_with<F>( &self, raw: &RawAnswers, form: F, ) -> Result<Answers, Vec<ValidationDiagnostic>>
Source§impl Questionnaire
impl Questionnaire
Source§impl Questionnaire
impl Questionnaire
pub fn parse_answer_sheet( &self, text: &str, ) -> Result<RawAnswers, Vec<AnswerSheetDiagnostic>>
Source§impl Questionnaire
impl Questionnaire
pub fn render_answer_sheet(&self) -> String
Trait Implementations§
Source§impl Clone for Questionnaire
impl Clone for Questionnaire
Source§fn clone(&self) -> Questionnaire
fn clone(&self) -> Questionnaire
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Questionnaire
impl Debug for Questionnaire
impl Eq for Questionnaire
Source§impl PartialEq for Questionnaire
impl PartialEq for Questionnaire
impl StructuralPartialEq for Questionnaire
Auto Trait Implementations§
impl !RefUnwindSafe for Questionnaire
impl !UnwindSafe for Questionnaire
impl Freeze for Questionnaire
impl Send for Questionnaire
impl Sync for Questionnaire
impl Unpin for Questionnaire
impl UnsafeUnpin for Questionnaire
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more