Skip to content

Commit fb67845

Browse files
committed
primitives - Channel - change created from Option to DateTime only
1 parent bc94f7b commit fb67845

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

primitives/src/channel.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,10 @@ pub struct ChannelSpec {
141141
#[serde(default, skip_serializing_if = "Option::is_none")]
142142
pub event_submission: Option<EventSubmission>,
143143
/// A millisecond timestamp of when the campaign was created
144-
#[serde(
145-
default,
146-
skip_serializing_if = "Option::is_none",
147-
with = "ts_milliseconds_option"
148-
)]
149-
pub created: Option<DateTime<Utc>>,
144+
#[serde(with = "ts_milliseconds")]
145+
pub created: DateTime<Utc>,
150146
/// A millisecond timestamp representing the time you want this campaign to become active (optional)
151-
/// Used by the AdViewManager
147+
/// Used by the AdViewManager & Targeting AIP#31
152148
#[serde(
153149
default,
154150
skip_serializing_if = "Option::is_none",

0 commit comments

Comments
 (0)