#[non_exhaustive]pub struct TextArea {Show 13 fields
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.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 PartialOrd<TextArea> for TextArea
impl PartialOrd<TextArea> for TextArea
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more