Create a new result with just a session ID and phase. This is public so that other crates (e.g., `atomic-cli`) can construct `DispatchResult` values for testing hook response handling.
(session_id: impl Into<String>, phase: Phase)
| 140 | /// This is public so that other crates (e.g., `atomic-cli`) can construct |
| 141 | /// `DispatchResult` values for testing hook response handling. |
| 142 | pub fn new(session_id: impl Into<String>, phase: Phase) -> Self { |
| 143 | Self { |
| 144 | session_id: session_id.into(), |
| 145 | new_phase: phase, |
| 146 | change_recorded: None, |
| 147 | view: None, |
| 148 | message: None, |
| 149 | warnings: Vec::new(), |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | /// Set the recorded change outcome. |
| 154 | pub(crate) fn with_change(mut self, outcome: TurnRecordOutcome) -> Self { |
nothing calls this directly
no test coverage detected