pub struct DialogResult {
pub dialog_name: String,
pub success: bool,
pub steps: Vec<StepResult>,
pub output: String,
pub error: Option<String>,
}Expand description
Result of executing a complete dialog.
Fields§
§dialog_name: StringName of the dialog.
success: boolWhether the dialog succeeded.
steps: Vec<StepResult>Results of each step.
output: StringTotal output captured.
error: Option<String>Error message if failed.
Implementations§
Source§impl DialogResult
impl DialogResult
Sourcepub fn all_success(&self) -> bool
pub fn all_success(&self) -> bool
Check if all steps succeeded.
Sourcepub fn last_step(&self) -> Option<&StepResult>
pub fn last_step(&self) -> Option<&StepResult>
Get the last step result.
Sourcepub fn get_step(&self, name: &str) -> Option<&StepResult>
pub fn get_step(&self, name: &str) -> Option<&StepResult>
Get a step by name.
Trait Implementations§
Source§impl Clone for DialogResult
impl Clone for DialogResult
Source§fn clone(&self) -> DialogResult
fn clone(&self) -> DialogResult
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 DialogResult
impl RefUnwindSafe for DialogResult
impl Send for DialogResult
impl Sync for DialogResult
impl Unpin for DialogResult
impl UnwindSafe for DialogResult
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