#[non_exhaustive]pub struct TextArea {Show 14 fields
pub data_map: DataMap,
pub autocomplete: Option<Cow<'static, str>>,
pub cols: Option<i64>,
pub dir_name: Option<Cow<'static, str>>,
pub disabled: bool,
pub form: Option<Cow<'static, str>>,
pub max_length: Option<i64>,
pub min_length: Option<i64>,
pub name: Option<Cow<'static, str>>,
pub placeholder: Option<Cow<'static, str>>,
pub read_only: bool,
pub required: bool,
pub rows: Option<i64>,
pub wrap: Option<Cow<'static, str>>,
/* private fields */
}
Expand description
The HTML <textarea>
element
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.data_map: DataMap
§autocomplete: Option<Cow<'static, str>>
Hint for form autofill feature
cols: Option<i64>
Maximum number of characters per line
dir_name: Option<Cow<'static, str>>
Name of form control to use for sending the element’s directionality in form submission
disabled: bool
Whether the form control is disabled
form: Option<Cow<'static, str>>
Associates the element with a form element
max_length: Option<i64>
Maximum length of value
min_length: Option<i64>
Minimum length of value
name: Option<Cow<'static, str>>
Name of the element to use for form submission and in the form.elements API
placeholder: Option<Cow<'static, str>>
User-visible label to be placed within the form control
read_only: bool
Whether to allow the value to be edited by the user
required: bool
Whether the control is required for form submission
rows: Option<i64>
Number of lines to show
wrap: Option<Cow<'static, str>>
How the value of the form control is to be wrapped for form submission
Trait Implementations§
source§impl PartialEq<TextArea> for TextArea
impl PartialEq<TextArea> for TextArea
source§impl RenderElement for TextArea
impl RenderElement for TextArea
impl StructuralPartialEq for TextArea
Auto Trait Implementations§
impl RefUnwindSafe for TextArea
impl Send for TextArea
impl Sync for TextArea
impl Unpin for TextArea
impl UnwindSafe for TextArea
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