#[cfg(test)] mod tests { use domcom_form_manager::form; use futures_signals::signal::Mutable; pub struct Field { pub label: String, pub value: Mutable, pub error: Mutable>, pub regex: Option, pub required: bool, } #[test] fn it_works() { let data = form!( .field(id: "first_name", label: "First Name", pattern: ".{3,}", required: true, type: String) .field(id: "first_name", label: "First Name", pattern: ".{3,}", required: true, type: String) .field(id: "first_name", label: "First Name", pattern: ".{3,}", required: true, type: String) ); } }