pub struct Files {
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,
pub def: 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: String§def: StringImplementations§
source§impl Files
impl Files
pub fn new(require: bool, field: &str, title: &str) -> Self
pub fn encrypt(&mut self) -> &mut Self
pub fn multiple(&mut self, number: i32) -> &mut Self
pub fn option(&mut self, option: Vec<&str>) -> &mut Self
pub fn size(&mut self, size: usize) -> &mut Self
pub fn def(&mut self, def: &str) -> &mut Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Files
impl RefUnwindSafe for Files
impl Send for Files
impl Sync for Files
impl Unpin for Files
impl UnwindSafe for Files
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