use std::default::Default;
-use std::any::Any;
+use std::{any::Any, marker::{Sync, Send}};
use serde_derive::{Serialize};
validators: Vec<Box<dyn super::validators::TValidator>>,
}
+unsafe impl Send for Field {}
+unsafe impl Sync for Field {}
+
pub trait TField {
fn get_name(&self) -> String;
use crate::fields;
+use std::marker::{Sync, Send};
+
pub struct Form {
fields: Vec<Box<dyn super::fields::TField>>,
}
+unsafe impl Sync for Form {}
+unsafe impl Send for Form {}
+
impl Form {
pub fn new() -> Form {
Form {