pub struct ChatInputOption {
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 ChatInputOption
impl Clone for ChatInputOption
Source§fn clone(&self) -> ChatInputOption
fn clone(&self) -> ChatInputOption
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 ChatInputOption
impl Debug for ChatInputOption
Source§impl<'de> Deserialize<'de> for ChatInputOption
impl<'de> Deserialize<'de> for ChatInputOption
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 ChatInputOption
impl PartialEq for ChatInputOption
Source§fn eq(&self, other: &ChatInputOption) -> bool
fn eq(&self, other: &ChatInputOption) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ChatInputOption
impl Serialize for ChatInputOption
impl StructuralPartialEq for ChatInputOption
Auto Trait Implementations§
impl Freeze for ChatInputOption
impl RefUnwindSafe for ChatInputOption
impl Send for ChatInputOption
impl Sync for ChatInputOption
impl Unpin for ChatInputOption
impl UnsafeUnpin for ChatInputOption
impl UnwindSafe for ChatInputOption
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