pub struct InstantDt {
pub id: Option<String>,
pub extension: Option<Vec<Extension>>,
pub value: Option<Instant>,
}
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转换为对应的时区
Fields§
§id: Option<String>
xml:id (or equivalent in JSON)
extension: Option<Vec<Extension>>
Additional content defined by implementations
value: Option<Instant>
Primitive value for instant
Trait Implementations§
Source§impl Convert for InstantDt
impl Convert for InstantDt
fn to_integer(&self) -> Result<Integer>
fn to_decimal(&self) -> Result<Decimal>
fn to_strings(&self) -> Result<String>
fn to_datetime(&self) -> Result<DateTime>
fn to_boolean(&self) -> Result<Boolean>
Source§impl<'de> Deserialize<'de> for InstantDt
impl<'de> Deserialize<'de> for InstantDt
fn deserialize<De>(deserializer: De) -> Result<Self>where
De: Deserializer<'de>,
Source§impl Executor for InstantDt
impl Executor for InstantDt
fn element(&self, symbol: &String, index: &Option<usize>) -> Result<Collection>
fn to_collection(&self, _index: &Option<usize>) -> Collection
fn child(&self, _index: usize) -> Result<Collection>
impl DataType for InstantDt
Auto Trait Implementations§
impl Freeze for InstantDt
impl RefUnwindSafe for InstantDt
impl Send for InstantDt
impl Sync for InstantDt
impl Unpin for InstantDt
impl UnwindSafe for InstantDt
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