pub struct StepResult {
pub step_name: String,
pub success: bool,
pub output: String,
pub matched: Option<String>,
pub send: Option<String>,
pub error: Option<String>,
pub next_step: Option<String>,
}Expand description
Result of executing a dialog step.
Fields§
§step_name: StringName of the step.
success: boolWhether the step succeeded.
output: StringOutput captured before the match.
matched: Option<String>The matched text.
send: Option<String>The text that was/will be sent (after variable substitution).
error: Option<String>Error message if failed.
next_step: Option<String>Name of the next step to execute.
Trait Implementations§
Source§impl Clone for StepResult
impl Clone for StepResult
Source§fn clone(&self) -> StepResult
fn clone(&self) -> StepResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StepResult
impl RefUnwindSafe for StepResult
impl Send for StepResult
impl Sync for StepResult
impl Unpin for StepResult
impl UnwindSafe for StepResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more