pub enum ElicitContentValue {
Null,
Bool(bool),
Int(i64),
Float(f64),
String(String),
StringArray(Vec<String>),
}Expand description
Content type for elicitation responses.
Values can be strings, integers, floats, booleans, arrays of strings, or null.
Variants§
Null
Null value.
Bool(bool)
Boolean value.
Int(i64)
Integer value.
Float(f64)
Float value.
String(String)
String value.
StringArray(Vec<String>)
Array of strings (for multi-select).
Trait Implementations§
Source§impl Clone for ElicitContentValue
impl Clone for ElicitContentValue
Source§fn clone(&self) -> ElicitContentValue
fn clone(&self) -> ElicitContentValue
Returns a duplicate of the value. Read more
1.0.0 · 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 ElicitContentValue
impl Debug for ElicitContentValue
Source§impl<'de> Deserialize<'de> for ElicitContentValue
impl<'de> Deserialize<'de> for ElicitContentValue
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 From<&str> for ElicitContentValue
impl From<&str> for ElicitContentValue
Source§impl<T: Into<ElicitContentValue>> From<Option<T>> for ElicitContentValue
impl<T: Into<ElicitContentValue>> From<Option<T>> for ElicitContentValue
Source§impl From<String> for ElicitContentValue
impl From<String> for ElicitContentValue
Source§impl From<bool> for ElicitContentValue
impl From<bool> for ElicitContentValue
Source§impl From<f64> for ElicitContentValue
impl From<f64> for ElicitContentValue
Source§impl From<i64> for ElicitContentValue
impl From<i64> for ElicitContentValue
Auto Trait Implementations§
impl Freeze for ElicitContentValue
impl RefUnwindSafe for ElicitContentValue
impl Send for ElicitContentValue
impl Sync for ElicitContentValue
impl Unpin for ElicitContentValue
impl UnwindSafe for ElicitContentValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).