fn filter(&mut self);
fn add_validator(&mut self, validator: Box<dyn super::validators::TValidator>);
+ fn get_validators(&mut self) -> &Vec<Box<dyn super::validators::TValidator>>;
fn set_template(&mut self, template: &str);
self.field.validators.push(validator);
}
+ fn get_validators(&mut self) -> &Vec<Box<dyn super::validators::TValidator>> {
+ &self.field.validators
+ }
+
fn set_template(&mut self, template: &str) {
match self.field.tmpl.add_raw_template("field", template) {
Err(e) => { println!("{:?}", e) },
self.field.validators.push(validator);
}
+ fn get_validators(&mut self) -> &Vec<Box<dyn super::validators::TValidator>> {
+ &self.field.validators
+ }
+
fn set_template(&mut self, template: &str) {
match self.field.tmpl.add_raw_template("field", template) {
Err(e) => { println!("{:?}", e) },
self.field.validators.push(validator);
}
+ fn get_validators(&mut self) -> &Vec<Box<dyn super::validators::TValidator>> {
+ &self.field.validators
+ }
+
fn set_template(&mut self, template: &str) {
match self.field.tmpl.add_raw_template("field", template) {
Err(e) => { println!("{:?}", e) },
self.field.validators.push(validator);
}
+ fn get_validators(&mut self) -> &Vec<Box<dyn super::validators::TValidator>> {
+ &self.field.validators
+ }
+
fn set_template(&mut self, template: &str) {
match self.field.tmpl.add_raw_template("field", template) {
Err(e) => { println!("{:?}", e) },
self.field.validators.push(validator);
}
+ fn get_validators(&mut self) -> &Vec<Box<dyn super::validators::TValidator>> {
+ &self.field.validators
+ }
+
fn set_template(&mut self, template: &str) {
match self.field.tmpl.add_raw_template("field", template) {
Err(e) => { println!("{:?}", e) },
self.field.validators.push(validator);
}
+ fn get_validators(&mut self) -> &Vec<Box<dyn super::validators::TValidator>> {
+ &self.field.validators
+ }
+
fn set_template(&mut self, template: &str) {
match self.field.tmpl.add_raw_template("field", template) {
Err(e) => { println!("{:?}", e) },
self.field.validators.push(validator);
}
+ fn get_validators(&mut self) -> &Vec<Box<dyn super::validators::TValidator>> {
+ &self.field.validators
+ }
+
fn set_template(&mut self, template: &str) {
match self.field.tmpl.add_raw_template("field", template) {
Err(e) => { println!("{:?}", e) },