formidable 0.1.0

Easily derive forms from structs for Leptos.
Documentation
1
2
3
4
5
6
7
use crate::components::InputType;
use crate::types::FormType;

impl FormType for url::Url {
    const INPUT_TYPE: InputType = InputType::Url;
    const REQUIRED: Option<bool> = Some(true);
}