Skip to content

Commit 1b0d98c

Browse files
committed
removed commented out fields
1 parent ce1644a commit 1b0d98c

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

primitives/src/ad_slot.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ pub struct AdSlot {
4242
/// User address from the session
4343
pub owner: ValidatorId,
4444
/// UTC timestamp in milliseconds, used as nonce for escaping duplicated spec ipfs hashes
45-
// #[serde(deserialize_with = "from_timestamp")]
4645
pub created: DateTime<Utc>,
4746
/// the name of the unit used in platform UI
4847
#[serde(default)]
@@ -56,17 +55,5 @@ pub struct AdSlot {
5655
#[serde(default)]
5756
pub archived: bool,
5857
/// UTC timestamp in milliseconds, changed every time modifiable property is changed
59-
// #[serde(deserialize_with = "from_timestamp_option")]
6058
pub modified: Option<DateTime<Utc>>,
6159
}
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-
// }

0 commit comments

Comments
 (0)