pub struct Prompt {Show 13 fields
pub pk: Uuid,
pub name: String,
pub field_key: String,
pub label: String,
pub type: PromptTypeEnum,
pub required: Option<bool>,
pub placeholder: Option<String>,
pub initial_value: Option<String>,
pub order: Option<i32>,
pub promptstage_set: Option<Vec<Stage>>,
pub sub_text: Option<String>,
pub placeholder_expression: Option<bool>,
pub initial_value_expression: Option<bool>,
}
Expand description
Prompt : Prompt Serializer
Fields§
§pk: Uuid
§name: String
§field_key: String
Name of the form field, also used to store the value
label: String
§type: PromptTypeEnum
§required: Option<bool>
§placeholder: Option<String>
Optionally provide a short hint that describes the expected input value. When creating a fixed choice field, enable interpreting as expression and return a list to return multiple choices.
initial_value: Option<String>
Optionally pre-fill the input with an initial value. When creating a fixed choice field, enable interpreting as expression and return a list to return multiple default choices.
order: Option<i32>
§promptstage_set: Option<Vec<Stage>>
§sub_text: Option<String>
§placeholder_expression: Option<bool>
§initial_value_expression: Option<bool>
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Prompt
impl<'de> Deserialize<'de> for Prompt
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
impl StructuralPartialEq for Prompt
Auto Trait Implementations§
impl Freeze for Prompt
impl RefUnwindSafe for Prompt
impl Send for Prompt
impl Sync for Prompt
impl Unpin for Prompt
impl UnwindSafe for Prompt
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