pub struct UIElicitationStringEnumField {
pub default: Option<String>,
pub description: Option<String>,
pub enum: Vec<String>,
pub enum_names: Option<Vec<String>>,
pub title: Option<String>,
pub type: UIElicitationStringEnumFieldType,
}Expand description
Single-select string field whose allowed values are defined inline.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§default: Option<String>Default value selected when the form is first shown.
description: Option<String>Help text describing the field.
enum: Vec<String>Allowed string values.
enum_names: Option<Vec<String>>Optional display labels for each enum value, in the same order as enum.
title: Option<String>Human-readable label for the field.
type: UIElicitationStringEnumFieldTypeType discriminator. Always “string”.
Trait Implementations§
Source§impl Clone for UIElicitationStringEnumField
impl Clone for UIElicitationStringEnumField
Source§fn clone(&self) -> UIElicitationStringEnumField
fn clone(&self) -> UIElicitationStringEnumField
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 UIElicitationStringEnumField
impl Debug for UIElicitationStringEnumField
Source§impl Default for UIElicitationStringEnumField
impl Default for UIElicitationStringEnumField
Source§fn default() -> UIElicitationStringEnumField
fn default() -> UIElicitationStringEnumField
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UIElicitationStringEnumField
impl<'de> Deserialize<'de> for UIElicitationStringEnumField
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
Auto Trait Implementations§
impl Freeze for UIElicitationStringEnumField
impl RefUnwindSafe for UIElicitationStringEnumField
impl Send for UIElicitationStringEnumField
impl Sync for UIElicitationStringEnumField
impl Unpin for UIElicitationStringEnumField
impl UnsafeUnpin for UIElicitationStringEnumField
impl UnwindSafe for UIElicitationStringEnumField
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