pub struct Polygon {
pub require: bool,
pub field: String,
pub mode: String,
pub title: String,
pub def: JsonValue,
pub length: i32,
pub show: bool,
pub describe: String,
pub items: JsonValue,
pub example: JsonValue,
pub max_items: i32,
}Expand description
附件
- require 是否必填
- field 字段名
- mode 模式 file
- title 字段描述
- length 附件数量
- def 默认值
Fields§
§require: bool§field: String§mode: String§title: String§def: JsonValue§length: i32§show: bool§describe: String§items: JsonValue§example: JsonValue§max_items: i32Implementations§
Source§impl Polygon
impl Polygon
pub fn new(require: bool, field: &str, title: &str, def: JsonValue) -> Self
Sourcepub fn length(self, length: i32) -> Self
pub fn length(self, length: i32) -> Self
最小长度 TEXT 最多 65535 个字符 中等长度 MEDIUMTEXT 最多 16777215 个字符 最长长度 LONGTEXT 最多 4294967295 个字符
pub fn items(self, item: JsonValue) -> Self
pub fn max_items(self, mun: i32) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Polygon
impl RefUnwindSafe for Polygon
impl Send for Polygon
impl Sync for Polygon
impl Unpin for Polygon
impl UnwindSafe for Polygon
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