#[non_exhaustive]pub enum UserInputOutcome {
Answered,
Cancelled,
Interrupted,
Clarified,
TimedOut,
Aborted,
Unknown(String),
}Expand description
How a user-input prompt settled. More values may be added, so handle values you do not recognize.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Answered
answered: the user answered every question.
Cancelled
cancelled: the user declined to answer.
Interrupted
interrupted: the turn was interrupted while the prompt was open. If a
userInput/interrupt named this prompt, its confirmed answers are in
answers.
Clarified
clarified: the user replied with a free-form clarification instead of
choosing options.
TimedOut
timedOut: the prompt’s auto-resolution countdown ran out before anyone
answered.
Aborted
aborted: the host closed the prompt without an answer, for example
when the run was torn down; reason says why.
Unknown(String)
A value from a newer host, kept verbatim so an older client decodes the rest of the message. Never construct it with a known word.
Implementations§
Trait Implementations§
Source§impl Clone for UserInputOutcome
impl Clone for UserInputOutcome
Source§impl Debug for UserInputOutcome
impl Debug for UserInputOutcome
Source§impl<'de> Deserialize<'de> for UserInputOutcome
impl<'de> Deserialize<'de> for UserInputOutcome
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for UserInputOutcome
Source§impl PartialEq for UserInputOutcome
impl PartialEq for UserInputOutcome
Source§impl Serialize for UserInputOutcome
impl Serialize for UserInputOutcome
impl StructuralPartialEq for UserInputOutcome
Auto Trait Implementations§
impl Forget for UserInputOutcome
impl Freeze for UserInputOutcome
impl Move for UserInputOutcome
impl RefUnwindSafe for UserInputOutcome
impl Send for UserInputOutcome
impl Sync for UserInputOutcome
impl Unpin for UserInputOutcome
impl UnsafeUnpin for UserInputOutcome
impl UnwindSafe for UserInputOutcome
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