InterviewBackend

Trait InterviewBackend 

Source
pub trait InterviewBackend {
    // Required method
    fn execute(&self, interview: &Interview) -> Result<Answers, BackendError>;

    // Provided method
    fn execute_section(
        &self,
        section: &Section,
    ) -> Result<Answers, BackendError> { ... }
}
Expand description

Trait for interview execution backends

Required Methods§

Source

fn execute(&self, interview: &Interview) -> Result<Answers, BackendError>

Execute an interview and return the collected answers

Provided Methods§

Source

fn execute_section(&self, section: &Section) -> Result<Answers, BackendError>

Execute a single section (optional, has default implementation)

Implementors§