pub struct YearMonth {
pub require: bool,
pub field: String,
pub mode: String,
pub title: String,
pub def: i64,
pub show: bool,
pub describe: String,
pub example: JsonValue,
}Expand description
年月 (时间戳存储)
- require 是否必填
- field 字段名
- mode 模式 yearmonth
- title 字段描述
- def 默认值 (时间戳,存储为每月1日 00:00:00)
Fields§
§require: bool§field: String§mode: String§title: String§def: i64§show: bool§describe: String§example: JsonValueImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for YearMonth
impl RefUnwindSafe for YearMonth
impl Send for YearMonth
impl Sync for YearMonth
impl Unpin for YearMonth
impl UnsafeUnpin for YearMonth
impl UnwindSafe for YearMonth
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