Skip to content

Commit 7682d40

Browse files
committed
primitives - AdSlot - use targeting::Rules
1 parent ceea8c0 commit 7682d40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

primitives/src/ad_slot.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::{targeting::Rule, Address, UnifiedNum, ValidatorId, IPFS};
1+
use crate::{targeting::Rules, Address, UnifiedNum, ValidatorId, IPFS};
22
use chrono::{
33
serde::{ts_milliseconds, ts_milliseconds_option},
44
DateTime, Utc,
@@ -29,7 +29,7 @@ pub struct AdSlot {
2929
#[serde(default)]
3030
pub min_per_impression: Option<HashMap<Address, UnifiedNum>>,
3131
#[serde(default)]
32-
pub rules: Vec<Rule>,
32+
pub rules: Rules,
3333
/// Valid ipfs hash for Ad Unit object. It will be used as fallback data (optional)
3434
#[serde(default)]
3535
pub fallback_unit: Option<IPFS>,

0 commit comments

Comments
 (0)