formidable 0.1.0

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

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