pub struct DateTime {
pub year: u16,
pub month: u16,
pub day: u16,
pub hour: u16,
pub minute: u16,
}
Expand description
解析日期时间的原始结果。如果需要其他形式的日期时间,可自行转化。
由函数 datetime
解析响应字节得到此结构体。
注意:默认 15 时(即 DateTime::default().hour == 15
)。
Fields§
§year: u16
§month: u16
§day: u16
§hour: u16
§minute: u16
Implementations§
Trait Implementations§
source§impl PartialEq for DateTime
impl PartialEq for DateTime
impl StructuralPartialEq for DateTime
Auto Trait Implementations§
impl Freeze for DateTime
impl RefUnwindSafe for DateTime
impl Send for DateTime
impl Sync for DateTime
impl Unpin for DateTime
impl UnwindSafe for DateTime
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