pub struct DateTime(/* private fields */);
Expand description
日期与时间
精度不限,展示形式灵活.
可以表示:
- 年 - 2023
- 年月 - 2023-08
- 年月日 - 2023-08-17
- 年月日时分秒 - 2023-08-17T08:21:45
- 年月日时分秒(毫秒) - 2023-08-17T08:21:45.234
- 年月日时分秒(毫秒)时区 - 2023-08-17T08:21:45.234+08:00
Trait Implementations§
source§impl<'de> Deserialize<'de> for DateTime
impl<'de> Deserialize<'de> for DateTime
fn deserialize<D>(deserializer: D) -> Result<Self>where
D: Deserializer<'de>,
Auto Trait Implementations§
impl RefUnwindSafe for DateTime
impl Send for DateTime
impl Sync for DateTime
impl Unpin for DateTime
impl UnwindSafe for DateTime
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