pub struct Files {}
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
§upload: bool
是否上传
def: String
§example: JsonValue
Implementations§
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
pub fn upload(&mut self, data: bool) -> &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