pub struct DateDt {
pub id: Option<String>,
pub extension: Option<Vec<Extension>>,
pub value: Option<Date>,
}
Expand description
日期类型
表示日期,包括年月日。格式为YYYY, YYYY-MM, YYYY-MM-DD。不要指定时区。
Fields§
§id: Option<String>
xml:id (or equivalent in JSON)
extension: Option<Vec<Extension>>
Additional content defined by implementations
value: Option<Date>
Primitive value for date
Trait Implementations§
Source§impl Convert for DateDt
impl Convert for DateDt
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 DateDt
impl<'de> Deserialize<'de> for DateDt
fn deserialize<De>(deserializer: De) -> Result<Self>where
De: Deserializer<'de>,
Source§impl Executor for DateDt
impl Executor for DateDt
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 DateDt
Auto Trait Implementations§
impl Freeze for DateDt
impl RefUnwindSafe for DateDt
impl Send for DateDt
impl Sync for DateDt
impl Unpin for DateDt
impl UnwindSafe for DateDt
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