pub struct TextInput {
pub custom_id: String,
pub label: String,
pub max_length: Option<u16>,
pub min_length: Option<u16>,
pub placeholder: Option<String>,
pub required: Option<bool>,
pub style: TextInputStyle,
pub value: Option<String>,
}
Expand description
Pop-up Component
that renders on modals.
Fields§
§custom_id: String
User defined identifier for the input text.
label: String
Text appearing over the input field.
max_length: Option<u16>
The maximum length of the text.
min_length: Option<u16>
The minimum length of the text.
Defaults to 0
.
placeholder: Option<String>
Placeholder for the text input.
required: Option<bool>
Whether the user is required to input a text.
Defaults to true
.
style: TextInputStyle
Style variant of the input text.
value: Option<String>
Pre-filled value for input text.
Trait Implementations§
impl Eq for TextInput
impl StructuralPartialEq for TextInput
Auto Trait Implementations§
impl Freeze for TextInput
impl RefUnwindSafe for TextInput
impl Send for TextInput
impl Sync for TextInput
impl Unpin for TextInput
impl UnwindSafe for TextInput
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)