pub struct Instant(/* private fields */);
Expand description
日期与时间
精度更高,最小精度要到秒,必须有时区。一般这种时间都是由机器生成的。
只接受FHIR规范约定的四种格式:
- 2009-12-24T07:12:45Z
- 2009-12-24T07:12:45.234Z
- 2009-12-24T07:12:45+08:00
- 2009-12-24T07:12:45.234+08:00
输出时,只有两种:
- 2009-12-24T07:12:45+08:00
- 2009-12-24T07:12:45.234+08:00 导入之后,会根据当地的时区将Z转换为对应的时区
Trait Implementations§
source§impl<'de> Deserialize<'de> for Instant
impl<'de> Deserialize<'de> for Instant
fn deserialize<D>(deserializer: D) -> Result<Self>where
D: Deserializer<'de>,
Auto Trait Implementations§
impl RefUnwindSafe for Instant
impl Send for Instant
impl Sync for Instant
impl Unpin for Instant
impl UnwindSafe for Instant
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