pub struct File {
pub require: bool,
pub field: String,
pub mode: String,
pub title: String,
pub length: i32,
pub encrypt: bool,
pub size: usize,
pub option: Vec<String>,
pub show: bool,
pub describe: String,
}Expand description
附件
- require 是否必填
- field 字段名
- mode 模式 file
- title 字段描述
- length 附件数量
- def 默认值
Fields§
§require: bool§field: String§mode: String§title: String§length: i32§encrypt: bool§size: usize§option: Vec<String>§show: bool§describe: StringImplementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnwindSafe for File
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more