scientific_method/prediction.rs
1// Copyright © 2026 James Hunt. All rights reserved.
2
3/// A concrete expected observation implied by a hypothesis.
4#[derive(Debug, Clone, PartialEq, Eq)]
5#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
6pub struct Prediction {
7 pub statement: String,
8}
9
10impl Prediction {
11 pub fn new(statement: impl Into<String>) -> Self {
12 Self {
13 statement: statement.into(),
14 }
15 }
16}