pub struct Array {
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
Array
- field 字段名
- mode 模式 json
- title 字段描述
- default 默认值
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 Array
impl Array
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 Array
impl RefUnwindSafe for Array
impl Send for Array
impl Sync for Array
impl Unpin for Array
impl UnwindSafe for Array
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