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)
| 167 | /// This is public so that other crates (e.g., `atomic-cli`) can construct |
| 168 | /// `DispatchResult` values for testing hook response handling. |
| 169 | pub fn new(session_id: impl Into<String>, phase: Phase) -> Self { |
| 170 | Self { |
| 171 | session_id: session_id.into(), |
| 172 | new_phase: phase, |
| 173 | change_recorded: None, |
| 174 | view: None, |
| 175 | message: None, |
| 176 | warnings: Vec::new(), |
| 177 | incomplete: None, |
| 178 | } |
| 179 | } |
| 180 | |
| 181 | /// Set the recorded change outcome. |
| 182 | pub(crate) fn with_change(mut self, outcome: TurnRecordOutcome) -> Self { |
nothing calls this directly
no test coverage detected