#[non_exhaustive]pub enum ElicitationContentValue {
String(String),
Integer(i64),
Number(f64),
Boolean(bool),
StringArray(Vec<String>),
}Available on crate feature
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<ElicitationContentValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ElicitationContentValue, <__D as Deserializer<'de>>::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§fn from(value: &str) -> ElicitationContentValue
fn from(value: &str) -> ElicitationContentValue
Converts to this type from the input type.
Source§impl From<String> for ElicitationContentValue
impl From<String> for ElicitationContentValue
Source§fn from(value: String) -> ElicitationContentValue
fn from(value: String) -> ElicitationContentValue
Converts to this type from the input type.
Source§impl From<bool> for ElicitationContentValue
impl From<bool> for ElicitationContentValue
Source§fn from(value: bool) -> ElicitationContentValue
fn from(value: bool) -> ElicitationContentValue
Converts to this type from the input type.
Source§impl From<f64> for ElicitationContentValue
impl From<f64> for ElicitationContentValue
Source§fn from(value: f64) -> ElicitationContentValue
fn from(value: f64) -> ElicitationContentValue
Converts to this type from the input type.
Source§impl From<i32> for ElicitationContentValue
impl From<i32> for ElicitationContentValue
Source§fn from(value: i32) -> ElicitationContentValue
fn from(value: i32) -> ElicitationContentValue
Converts to this type from the input type.
Source§impl From<i64> for ElicitationContentValue
impl From<i64> for ElicitationContentValue
Source§fn from(value: i64) -> ElicitationContentValue
fn from(value: i64) -> ElicitationContentValue
Converts to this type from the input type.
Source§impl IntoV1 for ElicitationContentValue
Available on crate feature unstable_elicitation only.
impl IntoV1 for ElicitationContentValue
Available on crate feature
unstable_elicitation only.Source§type Output = ElicitationContentValue
type Output = ElicitationContentValue
The corresponding v1 type.
Source§fn into_v1(
self,
) -> Result<<ElicitationContentValue as IntoV1>::Output, ProtocolConversionError>
fn into_v1( self, ) -> Result<<ElicitationContentValue as IntoV1>::Output, ProtocolConversionError>
Converts this value into the corresponding v1 type. Read more
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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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