pub enum ParameterUserInputFormItem {
TextInput {
label: String,
variable: String,
required: bool,
},
Paragraph {
label: String,
variable: String,
required: bool,
},
Number {
label: String,
variable: String,
required: bool,
},
Select {
label: String,
variable: String,
required: bool,
options: Vec<String>,
},
}
Expand description
用户输入表单配置
Variants§
Trait Implementations§
Source§impl Clone for ParameterUserInputFormItem
impl Clone for ParameterUserInputFormItem
Source§fn clone(&self) -> ParameterUserInputFormItem
fn clone(&self) -> ParameterUserInputFormItem
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 ParameterUserInputFormItem
impl Debug for ParameterUserInputFormItem
Source§impl<'de> Deserialize<'de> for ParameterUserInputFormItem
impl<'de> Deserialize<'de> for ParameterUserInputFormItem
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 ParameterUserInputFormItem
impl RefUnwindSafe for ParameterUserInputFormItem
impl Send for ParameterUserInputFormItem
impl Sync for ParameterUserInputFormItem
impl Unpin for ParameterUserInputFormItem
impl UnwindSafe for ParameterUserInputFormItem
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