usecrate::dialogue::state::DialogueState;/// Represents a result of a dialogue handler.
#[derive(Debug)]pubenumDialogueResult<S> {/// Indicates the next step of the dialogue containing the current value of the state.
Next(S),/// Indicates an exit from the dialogue.
Exit,}impl<S>From<S>forDialogueResult<S>where
S: DialogueState,
{fnfrom(state: S)->Self{DialogueResult::Next(state)}}