1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
use move_core_types::{
ident_str,
identifier::IdentStr,
move_resource::{MoveResource, MoveStructType},
};
use serde::{Deserialize, Serialize};
#[derive(Debug, Deserialize, Serialize)]
pub struct DiemTimestampResource {
pub diem_timestamp: DiemTimestamp,
}
impl MoveStructType for DiemTimestampResource {
const MODULE_NAME: &'static IdentStr = ident_str!("DiemTimestamp");
const STRUCT_NAME: &'static IdentStr = ident_str!("CurrentTimeMicroseconds");
}
impl MoveResource for DiemTimestampResource {}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct DiemTimestamp {
pub microseconds: u64,
}