Function to_html_form_string

Source
pub fn to_html_form_string(val: &Value) -> Result<Option<String>>
Expand description

Converts a Value to a string suitable for HTML form fields. Handles Bool as “on” for true or None for false, and supports String, Number, and Null. Returns an error for unsupported types. Differs from to_plain_string by applying HTML form conventions (e.g., bool handling).