#[repr(C)]pub struct FormElementInfo {Show 22 fields
pub element_type: i32,
pub id: String,
pub name: String,
pub page: u32,
pub x: f64,
pub y: f64,
pub width: f64,
pub height: f64,
pub required: bool,
pub readonly: bool,
pub disabled: bool,
pub default_value: String,
pub placeholder: String,
pub max_length: u32,
pub checked: bool,
pub export_value: String,
pub radio_group: String,
pub options: String,
pub selected_index: i32,
pub multiline: bool,
pub password: bool,
pub font_size: f64,
}Expand description
Form element detected in HTML
Fields§
§element_type: i32Element type
id: StringElement ID
name: StringElement name
page: u32Page number (1-based)
x: f64X coordinate in CSS pixels
y: f64Y coordinate in CSS pixels
width: f64Width in CSS pixels
height: f64Height in CSS pixels
required: boolRequired attribute
readonly: boolReadonly attribute
disabled: boolDisabled attribute
default_value: StringDefault value (text fields)
placeholder: StringPlaceholder text
max_length: u32Max length (0 = unlimited)
checked: boolChecked state (checkbox/radio)
export_value: StringExport value (checkbox/radio)
radio_group: StringRadio group name
options: StringDropdown options (comma-separated)
selected_index: i32Selected index (-1 = none)
multiline: boolMultiline text field
password: boolPassword field
font_size: f64Font size in points
Trait Implementations§
Source§impl Clone for FormElementInfo
impl Clone for FormElementInfo
Source§impl Debug for FormElementInfo
impl Debug for FormElementInfo
Source§impl Default for FormElementInfo
impl Default for FormElementInfo
Source§impl ExternType for FormElementInfo
impl ExternType for FormElementInfo
Auto Trait Implementations§
impl Freeze for FormElementInfo
impl RefUnwindSafe for FormElementInfo
impl Send for FormElementInfo
impl Sync for FormElementInfo
impl Unpin for FormElementInfo
impl UnwindSafe for FormElementInfo
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