scientific_method/question.rs
1// Copyright © 2026 James Hunt. All rights reserved.
2
3/// The question an experiment is intended to answer.
4#[derive(Debug, Clone, PartialEq, Eq)]
5#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
6pub struct Question {
7 pub text: String,
8}
9
10impl Question {
11 pub fn new(text: impl Into<String>) -> Self {
12 Self { text: text.into() }
13 }
14}