use std::{any::Any, marker::{Sync, Send}};
-use serde_derive::{Serialize};
+use serde_derive::Serialize;
#[derive(Default, Clone, Copy)]
pub enum FieldDbType {
pub struct FieldFile {
field: Field,
accept: String,
+ size_min: i32,
+ size_max: i32,
}
impl TField for FieldFile {
pub fn set_accept(&mut self, accept: &str) {
self.accept = String::from(accept);
}
+
+ pub fn get_size_min(&self) -> i32 {
+ self.size_min
+ }
+
+ pub fn set_size_min(&mut self, size_min: i32) {
+ self.size_min = size_min;
+ }
+
+ pub fn get_size_max(&self) -> i32 {
+ self.size_max
+ }
+
+ pub fn set_size_max(&mut self, size_max: i32) {
+ self.size_max = size_max;
+ }
}