#[non_exhaustive]pub enum InteractionKind {
Choice,
Prompt,
Confirm,
Form,
Notice,
}Expand description
What kind of interaction this is. The kind is semantic, never a renderer
choice: modal is a view decision (ADR C1), not a kind.
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.
Choice
Pick one of a fixed, displayed set — today’s Question<A>.
Not a two-option yes/no: that is InteractionKind::Confirm.
Prompt
Free text.
Confirm
A yes/no decision — proceed or not.
Carried either by a single toggle, or by one choice control offering
exactly two options where one grants and the other refuses or backs
out. The distinction from InteractionKind::Choice is the ROLES the
options carry, never how many there are.
Form
A multi-field form.
Notice
A notice that carries no controls and expects no response.
Trait Implementations§
Source§impl Clone for InteractionKind
impl Clone for InteractionKind
impl Copy for InteractionKind
Source§impl Debug for InteractionKind
impl Debug for InteractionKind
Source§impl<'de> Deserialize<'de> for InteractionKind
impl<'de> Deserialize<'de> for InteractionKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for InteractionKind
Source§impl PartialEq for InteractionKind
impl PartialEq for InteractionKind
Source§impl Serialize for InteractionKind
impl Serialize for InteractionKind
impl StructuralPartialEq for InteractionKind
Auto Trait Implementations§
impl Freeze for InteractionKind
impl RefUnwindSafe for InteractionKind
impl Send for InteractionKind
impl Sync for InteractionKind
impl Unpin for InteractionKind
impl UnsafeUnpin for InteractionKind
impl UnwindSafe for InteractionKind
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