calandria_sim/script/
step.rs1use super::Plan;
4
5#[derive(Clone, Debug, Eq, PartialEq)]
7pub struct ScriptStep<Q, R> {
8 expected: Q,
9 response: Plan<R>,
10}
11
12impl<Q, R> ScriptStep<Q, R> {
13 pub const fn new(expected: Q, response: Plan<R>) -> Self {
15 Self { expected, response }
16 }
17
18 pub const fn expected(&self) -> &Q {
20 &self.expected
21 }
22
23 pub const fn response(&self) -> &Plan<R> {
25 &self.response
26 }
27
28 pub(super) fn into_parts(self) -> (Q, Plan<R>) {
29 (self.expected, self.response)
30 }
31}