#[non_exhaustive]pub enum ElicitationPropertySchema {
String(StringPropertySchema),
Number(NumberPropertySchema),
Integer(IntegerPropertySchema),
Boolean(BooleanPropertySchema),
Array(MultiSelectPropertySchema),
}Available on crate feature
unstable_elicitation 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
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.
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.
Trait Implementations§
Source§impl Clone for ElicitationPropertySchema
impl Clone for ElicitationPropertySchema
Source§fn clone(&self) -> ElicitationPropertySchema
fn clone(&self) -> ElicitationPropertySchema
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 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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<BooleanPropertySchema> for ElicitationPropertySchema
impl From<BooleanPropertySchema> for ElicitationPropertySchema
Source§fn from(schema: BooleanPropertySchema) -> Self
fn from(schema: BooleanPropertySchema) -> Self
Converts to this type from the input type.
Source§impl From<IntegerPropertySchema> for ElicitationPropertySchema
impl From<IntegerPropertySchema> for ElicitationPropertySchema
Source§fn from(schema: IntegerPropertySchema) -> Self
fn from(schema: IntegerPropertySchema) -> Self
Converts to this type from the input type.
Source§impl From<MultiSelectPropertySchema> for ElicitationPropertySchema
impl From<MultiSelectPropertySchema> for ElicitationPropertySchema
Source§fn from(schema: MultiSelectPropertySchema) -> Self
fn from(schema: MultiSelectPropertySchema) -> Self
Converts to this type from the input type.
Source§impl From<NumberPropertySchema> for ElicitationPropertySchema
impl From<NumberPropertySchema> for ElicitationPropertySchema
Source§fn from(schema: NumberPropertySchema) -> Self
fn from(schema: NumberPropertySchema) -> Self
Converts to this type from the input type.
Source§impl From<StringPropertySchema> for ElicitationPropertySchema
impl From<StringPropertySchema> for ElicitationPropertySchema
Source§fn from(schema: StringPropertySchema) -> Self
fn from(schema: StringPropertySchema) -> Self
Converts to this type from the input type.
Source§impl IntoV2 for ElicitationPropertySchema
Available on crate feature unstable_protocol_v2 only.
impl IntoV2 for ElicitationPropertySchema
Available on crate feature
unstable_protocol_v2 only.Source§impl JsonSchema for ElicitationPropertySchema
impl JsonSchema for ElicitationPropertySchema
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 ElicitationPropertySchema
impl PartialEq for ElicitationPropertySchema
Source§fn eq(&self, other: &ElicitationPropertySchema) -> bool
fn eq(&self, other: &ElicitationPropertySchema) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ElicitationPropertySchema
Auto Trait Implementations§
impl Freeze for ElicitationPropertySchema
impl RefUnwindSafe for ElicitationPropertySchema
impl Send for ElicitationPropertySchema
impl Sync for ElicitationPropertySchema
impl Unpin for ElicitationPropertySchema
impl UnsafeUnpin for ElicitationPropertySchema
impl UnwindSafe for ElicitationPropertySchema
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