pub struct Props {
pub name: String,
pub input_type: InputType,
pub placeholder: String,
pub value: String,
pub id: String,
pub disabled: bool,
pub required: bool,
pub invalid: bool,
pub readonly: bool,
}Expand description
Input rendering properties
Fields§
§name: StringHTML name attribute for form submission
input_type: InputTypeInput type (text, email, password, etc.)
placeholder: StringPlaceholder text displayed when empty
value: StringCurrent value
id: StringHTML id attribute for label linkage
disabled: boolWhether the input is disabled
required: boolWhether the input is required
invalid: boolWhether the input is in an invalid state
readonly: boolWhether the input is readonly
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Props
impl RefUnwindSafe for Props
impl Send for Props
impl Sync for Props
impl Unpin for Props
impl UnsafeUnpin for Props
impl UnwindSafe for Props
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