pub enum InputType {
Show 15 variants
Text,
Textarea,
Boolean,
Number,
Select,
MultiSelect,
FilePath,
DirectoryPath,
Password,
Date,
Time,
DateTime,
Color,
Url,
Email,
}Expand description
Types of input that can be requested.
Variants§
Text
Single line text input.
Textarea
Multi-line text input.
Boolean
Boolean yes/no input.
Number
Numeric input.
Select
Single selection from options.
MultiSelect
Multiple selection from options.
FilePath
File path selection.
DirectoryPath
Directory path selection.
Password
Password or sensitive input.
Date
Date input.
Time
Time input.
DateTime
Date and time input.
Color
Color picker.
Url
URL input.
Email input.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for InputType
impl<'de> Deserialize<'de> for InputType
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 InputType
Auto Trait Implementations§
impl Freeze for InputType
impl RefUnwindSafe for InputType
impl Send for InputType
impl Sync for InputType
impl Unpin for InputType
impl UnwindSafe for InputType
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