#[non_exhaustive]pub enum ElicitationContentValue {
String(String),
Integer(i64),
Number(f64),
Boolean(bool),
StringArray(Vec<String>),
}Available on crate features
unstable_elicitation and unstable_protocol_v2 only.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.
Trait Implementations§
Source§impl Clone for ElicitationContentValue
impl Clone for ElicitationContentValue
Source§fn clone(&self) -> ElicitationContentValue
fn clone(&self) -> ElicitationContentValue
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 ElicitationContentValue
impl Debug for ElicitationContentValue
Source§impl<'de> Deserialize<'de> for ElicitationContentValue
impl<'de> Deserialize<'de> for ElicitationContentValue
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 ElicitationContentValue
impl From<&str> for ElicitationContentValue
Source§impl From<String> for ElicitationContentValue
impl From<String> for ElicitationContentValue
Source§impl From<bool> for ElicitationContentValue
impl From<bool> for ElicitationContentValue
Source§impl From<f64> for ElicitationContentValue
impl From<f64> for ElicitationContentValue
Source§impl From<i32> for ElicitationContentValue
impl From<i32> for ElicitationContentValue
Source§impl From<i64> for ElicitationContentValue
impl From<i64> for ElicitationContentValue
Source§impl IntoV1 for ElicitationContentValue
impl IntoV1 for ElicitationContentValue
Source§impl JsonSchema for ElicitationContentValue
impl JsonSchema for ElicitationContentValue
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ElicitationContentValue
impl PartialEq for ElicitationContentValue
Source§fn eq(&self, other: &ElicitationContentValue) -> bool
fn eq(&self, other: &ElicitationContentValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ElicitationContentValue
impl Serialize for ElicitationContentValue
impl StructuralPartialEq for ElicitationContentValue
Auto Trait Implementations§
impl Freeze for ElicitationContentValue
impl RefUnwindSafe for ElicitationContentValue
impl Send for ElicitationContentValue
impl Sync for ElicitationContentValue
impl Unpin for ElicitationContentValue
impl UnsafeUnpin for ElicitationContentValue
impl UnwindSafe for ElicitationContentValue
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