Struct bosonnlp::ConvertedTime
[−]
[src]
pub struct ConvertedTime { pub timestamp: Option<String>, pub timedelta: Option<String>, pub timespan: Option<(String, String)>, pub format: String, }
时间转换结果
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
impl Debug for ConvertedTime
[src]
impl Clone for ConvertedTime
[src]
fn clone(&self) -> ConvertedTime
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more