invisible: bool,
help: String,
value: String,
+ to_load: bool,
+ to_save: bool,
tmpl: tera::Tera,
filters: Vec<super::filters::Filter>,
}
fn get_value(&self) -> String;
fn set_value(&mut self, value: &str);
+ fn get_to_load(&self) -> bool;
+ fn set_to_load(&mut self, to_load: bool);
+
+ fn get_to_save(&self) -> bool;
+ fn set_to_save(&mut self, to_save: bool);
+
fn add_filter(&mut self, filter: super::filters::Filter);
fn filter(&mut self);
self.field.value = String::from(value);
}
+ fn get_to_load(&self) -> bool {
+ self.field.to_load
+ }
+
+ fn set_to_load(&mut self, load: bool) {
+ self.field.to_load = load;
+ }
+
+ fn get_to_save(&self) -> bool {
+ self.field.to_save
+ }
+
+ fn set_to_save(&mut self, save: bool) {
+ self.field.to_save = save;
+ }
+
fn add_filter(&mut self, filter: super::filters::Filter) {
self.field.filters.push(filter);
}
self.field.value = String::from(value);
}
+ fn get_to_load(&self) -> bool {
+ self.field.to_load
+ }
+
+ fn set_to_load(&mut self, load: bool) {
+ self.field.to_load = load;
+ }
+
+ fn get_to_save(&self) -> bool {
+ self.field.to_save
+ }
+
+ fn set_to_save(&mut self, save: bool) {
+ self.field.to_save = save;
+ }
+
fn add_filter(&mut self, filter: super::filters::Filter) {
self.field.filters.push(filter);
}
self.field.value = String::from(value);
}
+ fn get_to_load(&self) -> bool {
+ self.field.to_load
+ }
+
+ fn set_to_load(&mut self, load: bool) {
+ self.field.to_load = load;
+ }
+
+ fn get_to_save(&self) -> bool {
+ self.field.to_save
+ }
+
+ fn set_to_save(&mut self, save: bool) {
+ self.field.to_save = save;
+ }
+
fn add_filter(&mut self, filter: super::filters::Filter) {
self.field.filters.push(filter);
}
self.field.value = String::from(value);
}
+ fn get_to_load(&self) -> bool {
+ self.field.to_load
+ }
+
+ fn set_to_load(&mut self, load: bool) {
+ self.field.to_load = load;
+ }
+
+ fn get_to_save(&self) -> bool {
+ self.field.to_save
+ }
+
+ fn set_to_save(&mut self, save: bool) {
+ self.field.to_save = save;
+ }
+
fn add_filter(&mut self, filter: super::filters::Filter) {
self.field.filters.push(filter);
}
self.field.value = String::from(value);
}
+ fn get_to_load(&self) -> bool {
+ self.field.to_load
+ }
+
+ fn set_to_load(&mut self, load: bool) {
+ self.field.to_load = load;
+ }
+
+ fn get_to_save(&self) -> bool {
+ self.field.to_save
+ }
+
+ fn set_to_save(&mut self, save: bool) {
+ self.field.to_save = save;
+ }
+
fn add_filter(&mut self, filter: super::filters::Filter) {
self.field.filters.push(filter);
}