pub trait QuestionRepository: Send + Sync {
// Required methods
fn save_question(
&self,
question: &ResearchQuestion,
) -> Result<(), CoreError>;
fn get_question(
&self,
question_id: &str,
) -> Result<Option<ResearchQuestion>, CoreError>;
fn list_questions(&self) -> Result<Vec<ResearchQuestion>, CoreError>;
fn save_term(&self, term: &SearchTerm) -> Result<(), CoreError>;
fn get_terms(&self, question_id: &str) -> Result<Vec<SearchTerm>, CoreError>;
}Expand description
Port for research question and search term persistence.