pub struct SessionInputOption {
pub id: String,
pub label: String,
pub description: Option<String>,
pub recommended: Option<bool>,
}Expand description
A choice in a select-style question.
Fields§
§id: StringStable option identifier; for MCP enum values this is the enum string
label: StringDisplay label
description: Option<String>Optional secondary text
recommended: Option<bool>Whether this option is the recommended/default choice
Trait Implementations§
Source§impl Clone for SessionInputOption
impl Clone for SessionInputOption
Source§fn clone(&self) -> SessionInputOption
fn clone(&self) -> SessionInputOption
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 SessionInputOption
impl Debug for SessionInputOption
Source§impl<'de> Deserialize<'de> for SessionInputOption
impl<'de> Deserialize<'de> for SessionInputOption
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
Source§impl PartialEq for SessionInputOption
impl PartialEq for SessionInputOption
Source§fn eq(&self, other: &SessionInputOption) -> bool
fn eq(&self, other: &SessionInputOption) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SessionInputOption
impl Serialize for SessionInputOption
impl StructuralPartialEq for SessionInputOption
Auto Trait Implementations§
impl Freeze for SessionInputOption
impl RefUnwindSafe for SessionInputOption
impl Send for SessionInputOption
impl Sync for SessionInputOption
impl Unpin for SessionInputOption
impl UnsafeUnpin for SessionInputOption
impl UnwindSafe for SessionInputOption
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