pub struct UserInputOptionEvent {
pub label: String,
pub description: String,
}Expand description
A selectable option presented to the user in a clarification question.
Headless serialization shape for the request_user_input model tool,
mirrored after the TUI’s UserInputOption. Shared by the
EventFrame::UserInputRequest frame and the AppRequest::SubmitUserInput
reply path so both surfaces agree on the question schema.
Fields§
§label: StringShort label for the option (also the value submitted when picked).
description: StringLonger description shown alongside the label.
Trait Implementations§
Source§impl Clone for UserInputOptionEvent
impl Clone for UserInputOptionEvent
Source§fn clone(&self) -> UserInputOptionEvent
fn clone(&self) -> UserInputOptionEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UserInputOptionEvent
impl Debug for UserInputOptionEvent
Source§impl<'de> Deserialize<'de> for UserInputOptionEvent
impl<'de> Deserialize<'de> for UserInputOptionEvent
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 UserInputOptionEvent
Source§impl PartialEq for UserInputOptionEvent
impl PartialEq for UserInputOptionEvent
Source§fn eq(&self, other: &UserInputOptionEvent) -> bool
fn eq(&self, other: &UserInputOptionEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UserInputOptionEvent
impl Serialize for UserInputOptionEvent
impl StructuralPartialEq for UserInputOptionEvent
Auto Trait Implementations§
impl Freeze for UserInputOptionEvent
impl RefUnwindSafe for UserInputOptionEvent
impl Send for UserInputOptionEvent
impl Sync for UserInputOptionEvent
impl Unpin for UserInputOptionEvent
impl UnsafeUnpin for UserInputOptionEvent
impl UnwindSafe for UserInputOptionEvent
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