```rust // Create the context, loading all trivia questions. Here is also where you specify whether or not you would like questions to repeat themselves let mut ctx = otqa::TriviaContext::new(false);
// Pick a question at random of a specified category. There are twenty to choose from. let question = ctx.get_question(otqa::Category::Animals);
// Here are all fields of questions println!("{}", question.question); println!("Category: {:?}", question.category); for answer in question.answers { println!("{}", answer); } println!("Correct answer: {}", question.correct_answer); ```