pub struct StagePrompt {
pub field_key: String,
pub label: String,
pub type: PromptTypeEnum,
pub required: bool,
pub placeholder: String,
pub initial_value: String,
pub order: i32,
pub sub_text: String,
pub choices: Option<Vec<String>>,
}
Expand description
StagePrompt : Serializer for a single Prompt field
Fields§
§field_key: String
§label: String
§type: PromptTypeEnum
§required: bool
§placeholder: String
§initial_value: String
§order: i32
§sub_text: String
§choices: Option<Vec<String>>
Implementations§
Trait Implementations§
Source§impl Clone for StagePrompt
impl Clone for StagePrompt
Source§fn clone(&self) -> StagePrompt
fn clone(&self) -> StagePrompt
Returns a duplicate of the value. Read more
1.0.0 · 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 StagePrompt
impl Debug for StagePrompt
Source§impl Default for StagePrompt
impl Default for StagePrompt
Source§fn default() -> StagePrompt
fn default() -> StagePrompt
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StagePrompt
impl<'de> Deserialize<'de> for StagePrompt
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 PartialEq for StagePrompt
impl PartialEq for StagePrompt
Source§impl Serialize for StagePrompt
impl Serialize for StagePrompt
impl StructuralPartialEq for StagePrompt
Auto Trait Implementations§
impl Freeze for StagePrompt
impl RefUnwindSafe for StagePrompt
impl Send for StagePrompt
impl Sync for StagePrompt
impl Unpin for StagePrompt
impl UnwindSafe for StagePrompt
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