Struct bosonnlp::ConvertedTime
source · 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
sourceimpl Clone for ConvertedTime
impl Clone for ConvertedTime
sourcefn clone(&self) -> ConvertedTime
fn clone(&self) -> ConvertedTime
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ConvertedTime
impl Debug for ConvertedTime
sourceimpl<'de> Deserialize<'de> for ConvertedTime
impl<'de> Deserialize<'de> for ConvertedTime
sourcefn 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 RefUnwindSafe for ConvertedTime
impl Send for ConvertedTime
impl Sync for ConvertedTime
impl Unpin for ConvertedTime
impl UnwindSafe for ConvertedTime
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more