pub struct ConvertedTime {
pub timestamp: Option<String>,
pub timedelta: Option<String>,
pub timespan: Option<(String, String)>,
pub format: String,
}
Expand description
时间转换结果
Fields§
§timestamp: Option<String>
时间点,ISO8601 格式的时间字符串
timedelta: Option<String>
时间量,格式为 “xday,HH:MM:SS” 或 “HH:MM:SS” 的字符串
timespan: Option<(String, String)>
表示时间点组成的时间区间结果,格式为 (timestamp, timestamp)
或 (timedelta, timedelta)
表示时间区间的起始和结束时间
format: String
时间数据格式, 有 timestamp
、timedelta
、timespan_0
、和 timespan_1
Trait Implementations§
Source§impl Clone for ConvertedTime
impl Clone for ConvertedTime
Source§fn clone(&self) -> ConvertedTime
fn clone(&self) -> ConvertedTime
Returns a copy 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 Debug for ConvertedTime
impl Debug for ConvertedTime
Source§impl<'de> Deserialize<'de> for ConvertedTime
impl<'de> Deserialize<'de> for ConvertedTime
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ConvertedTime
impl RefUnwindSafe for ConvertedTime
impl Send for ConvertedTime
impl Sync for ConvertedTime
impl Unpin for ConvertedTime
impl UnwindSafe for ConvertedTime
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