pub struct DateTimeDt {
pub id: Option<String>,
pub extension: Option<Vec<Extension>>,
pub value: Option<DateTime>,
}
Expand description
日期与时间
时间部分如果存在,必须到秒,如果精度不足,可以使用00填充。 如果存在时间,则必须提供时区。如果不确定时区,可以使用Z表示当地时区。
精度不限,展示形式灵活。可以表示如下几种格式:
- 年 - 2023
- 年月 - 2023-08
- 年月日 - 2023-08-17
- 年月日时分秒 - 2023-08-17T08:21:45Z
- 年月日时分秒(毫秒) - 2023-08-17T08:21:45.234Z
- 年月日时分秒(毫秒)时区 - 2023-08-17T08:21:45.234+08:00
Fields§
§id: Option<String>
xml:id (or equivalent in JSON)
extension: Option<Vec<Extension>>
Additional content defined by implementations
value: Option<DateTime>
Primitive value for dateTime
Trait Implementations§
Source§impl Clone for DateTimeDt
impl Clone for DateTimeDt
Source§fn clone(&self) -> DateTimeDt
fn clone(&self) -> DateTimeDt
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Compare for DateTimeDt
impl Compare for DateTimeDt
Source§impl Convert for DateTimeDt
impl Convert for DateTimeDt
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 Debug for DateTimeDt
impl Debug for DateTimeDt
Source§impl<'de> Deserialize<'de> for DateTimeDt
impl<'de> Deserialize<'de> for DateTimeDt
fn deserialize<De>(deserializer: De) -> Result<Self>where
De: Deserializer<'de>,
Source§impl Display for DateTimeDt
impl Display for DateTimeDt
Source§impl Element for DateTimeDt
impl Element for DateTimeDt
Source§impl Executor for DateTimeDt
impl Executor for DateTimeDt
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>
Source§impl From<DateTime> for DateTimeDt
impl From<DateTime> for DateTimeDt
Source§impl FromStr for DateTimeDt
impl FromStr for DateTimeDt
Source§impl Primitive for DateTimeDt
impl Primitive for DateTimeDt
Source§impl Serialize for DateTimeDt
impl Serialize for DateTimeDt
impl DataType for DateTimeDt
Auto Trait Implementations§
impl Freeze for DateTimeDt
impl RefUnwindSafe for DateTimeDt
impl Send for DateTimeDt
impl Sync for DateTimeDt
impl Unpin for DateTimeDt
impl UnwindSafe for DateTimeDt
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