#[non_exhaustive]pub enum ElicitationPropertySchema {
String(StringPropertySchema),
Number(NumberPropertySchema),
Integer(IntegerPropertySchema),
Boolean(BooleanPropertySchema),
Array(MultiSelectPropertySchema),
Other(OtherElicitationPropertySchema),
}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<ElicitationPropertySchema, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ElicitationPropertySchema, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl From<BooleanPropertySchema> for ElicitationPropertySchema
impl From<BooleanPropertySchema> for ElicitationPropertySchema
Source§fn from(schema: BooleanPropertySchema) -> ElicitationPropertySchema
fn from(schema: BooleanPropertySchema) -> ElicitationPropertySchema
Source§impl From<IntegerPropertySchema> for ElicitationPropertySchema
impl From<IntegerPropertySchema> for ElicitationPropertySchema
Source§fn from(schema: IntegerPropertySchema) -> ElicitationPropertySchema
fn from(schema: IntegerPropertySchema) -> ElicitationPropertySchema
Source§impl From<MultiSelectPropertySchema> for ElicitationPropertySchema
impl From<MultiSelectPropertySchema> for ElicitationPropertySchema
Source§fn from(schema: MultiSelectPropertySchema) -> ElicitationPropertySchema
fn from(schema: MultiSelectPropertySchema) -> ElicitationPropertySchema
Source§impl From<NumberPropertySchema> for ElicitationPropertySchema
impl From<NumberPropertySchema> for ElicitationPropertySchema
Source§fn from(schema: NumberPropertySchema) -> ElicitationPropertySchema
fn from(schema: NumberPropertySchema) -> ElicitationPropertySchema
Source§impl From<StringPropertySchema> for ElicitationPropertySchema
impl From<StringPropertySchema> for ElicitationPropertySchema
Source§fn from(schema: StringPropertySchema) -> ElicitationPropertySchema
fn from(schema: StringPropertySchema) -> ElicitationPropertySchema
Source§impl IntoV2 for ElicitationPropertySchema
Available on crate feature unstable_elicitation only.
impl IntoV2 for ElicitationPropertySchema
unstable_elicitation only.Source§type Output = ElicitationPropertySchema
type Output = ElicitationPropertySchema
Source§fn into_v2(
self,
) -> Result<<ElicitationPropertySchema as IntoV2>::Output, ProtocolConversionError>
fn into_v2( self, ) -> Result<<ElicitationPropertySchema as IntoV2>::Output, ProtocolConversionError>
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 ==.