File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ pub struct AdSlot {
42
42
/// User address from the session
43
43
pub owner : ValidatorId ,
44
44
/// UTC timestamp in milliseconds, used as nonce for escaping duplicated spec ipfs hashes
45
- // #[serde(deserialize_with = "from_timestamp")]
46
45
pub created : DateTime < Utc > ,
47
46
/// the name of the unit used in platform UI
48
47
#[ serde( default ) ]
@@ -56,17 +55,5 @@ pub struct AdSlot {
56
55
#[ serde( default ) ]
57
56
pub archived : bool ,
58
57
/// UTC timestamp in milliseconds, changed every time modifiable property is changed
59
- // #[serde(deserialize_with = "from_timestamp_option")]
60
58
pub modified : Option < DateTime < Utc > > ,
61
59
}
62
-
63
- // fn from_timestamp(time: &String) -> DateTime<Utc> {
64
- // DateTime::parse_from_str(time, "%Y-%m-%dT%H:%M:%S.%f").unwrap()
65
- // }
66
-
67
- // fn from_timestamp_option(time: &String) -> Option<DateTime<Utc>> {
68
- // match DateTime::parse_from_str(time, "%Y-%m-%dT%H:%M:%S.%f") {
69
- // Ok(t) => Some(t),
70
- // Err(_) => None,
71
- // }
72
- // }
You can’t perform that action at this time.
0 commit comments