pub struct RandomDateTime {
pub start_timestamp: i64,
pub end_timestamp: i64,
}Expand description
随机日期时间生成器
Fields§
§start_timestamp: i64开始时间戳 (秒)
end_timestamp: i64结束时间戳 (秒)
Implementations§
Source§impl RandomDateTime
impl RandomDateTime
Sourcepub fn generate_timestamp(&self) -> TestingResult<i64>
pub fn generate_timestamp(&self) -> TestingResult<i64>
生成随机时间戳
Trait Implementations§
Source§impl Clone for RandomDateTime
impl Clone for RandomDateTime
Source§fn clone(&self) -> RandomDateTime
fn clone(&self) -> RandomDateTime
Returns a duplicate 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 RandomDateTime
impl Debug for RandomDateTime
Auto Trait Implementations§
impl Freeze for RandomDateTime
impl RefUnwindSafe for RandomDateTime
impl Send for RandomDateTime
impl Sync for RandomDateTime
impl Unpin for RandomDateTime
impl UnsafeUnpin for RandomDateTime
impl UnwindSafe for RandomDateTime
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