#[non_exhaustive]pub enum ElicitationPropertySchema {
String(StringPropertySchema),
Number(NumberPropertySchema),
Integer(IntegerPropertySchema),
Boolean(BooleanPropertySchema),
Array(MultiSelectPropertySchema),
Other(OtherElicitationPropertySchema),
}unstable_elicitation and unstable_protocol_v2 only.Expand description
Property schema for elicitation form fields.
Each variant corresponds to a JSON Schema "type" value.
Single-select enums use the String variant with enum or oneOf set.
Multi-select enums use the Array variant.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
String(StringPropertySchema)
String property (or single-select enum when enum/oneOf is set).
Number(NumberPropertySchema)
Number (floating-point) property.
Integer(IntegerPropertySchema)
Integer property.
Boolean(BooleanPropertySchema)
Boolean property.
Array(MultiSelectPropertySchema)
Multi-select array property.
Other(OtherElicitationPropertySchema)
Custom or future elicitation property schema.
Values beginning with _ are reserved for implementation-specific
extensions. Unknown values that do not begin with _ are reserved for
future ACP variants.
Clients that do not understand this property schema type should preserve the raw schema when storing, replaying, proxying, or forwarding elicitation requests. They MUST NOT render it as a known input control.
Trait Implementations§
Source§impl Clone for ElicitationPropertySchema
impl Clone for ElicitationPropertySchema
Source§fn clone(&self) -> ElicitationPropertySchema
fn clone(&self) -> ElicitationPropertySchema
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ElicitationPropertySchema
impl Debug for ElicitationPropertySchema
Source§impl<'de> Deserialize<'de> for ElicitationPropertySchema
impl<'de> Deserialize<'de> for ElicitationPropertySchema
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>,
Source§impl From<BooleanPropertySchema> for ElicitationPropertySchema
impl From<BooleanPropertySchema> for ElicitationPropertySchema
Source§fn from(schema: BooleanPropertySchema) -> Self
fn from(schema: BooleanPropertySchema) -> Self
Source§impl From<IntegerPropertySchema> for ElicitationPropertySchema
impl From<IntegerPropertySchema> for ElicitationPropertySchema
Source§fn from(schema: IntegerPropertySchema) -> Self
fn from(schema: IntegerPropertySchema) -> Self
Source§impl From<MultiSelectPropertySchema> for ElicitationPropertySchema
impl From<MultiSelectPropertySchema> for ElicitationPropertySchema
Source§fn from(schema: MultiSelectPropertySchema) -> Self
fn from(schema: MultiSelectPropertySchema) -> Self
Source§impl From<NumberPropertySchema> for ElicitationPropertySchema
impl From<NumberPropertySchema> for ElicitationPropertySchema
Source§fn from(schema: NumberPropertySchema) -> Self
fn from(schema: NumberPropertySchema) -> Self
Source§impl From<StringPropertySchema> for ElicitationPropertySchema
impl From<StringPropertySchema> for ElicitationPropertySchema
Source§fn from(schema: StringPropertySchema) -> Self
fn from(schema: StringPropertySchema) -> Self
Source§impl IntoV1 for ElicitationPropertySchema
impl IntoV1 for ElicitationPropertySchema
Source§impl JsonSchema for ElicitationPropertySchema
impl JsonSchema for ElicitationPropertySchema
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for ElicitationPropertySchema
impl PartialEq for ElicitationPropertySchema
Source§fn eq(&self, other: &ElicitationPropertySchema) -> bool
fn eq(&self, other: &ElicitationPropertySchema) -> bool
self and other values to be equal, and is used by ==.