File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ pub struct AdSlot {
33
33
/// Advertised URL
34
34
pub target_url : String ,
35
35
/// Array of TargetingTag
36
+ #[ serde( default ) ]
36
37
pub targeting : Vec < TargetingTag > ,
37
38
// HashMap<DepositAsset, BigNum> for the minimum payment accepted per impression
38
39
#[ serde( default ) ]
@@ -44,15 +45,18 @@ pub struct AdSlot {
44
45
#[ serde( default ) ]
45
46
pub auto_tags : Vec < TargetingTag > ,
46
47
/// Valid ipfs hash for Ad Unit object. It will be used as fallback data (optional)
48
+ #[ serde( default ) ]
47
49
pub fallback_unit : Option < String > ,
48
50
/// User address from the session
49
51
pub owner : ValidatorId ,
50
52
/// UTC timestamp in milliseconds, used as nonce for escaping duplicated spec ipfs hashes
51
53
#[ serde( with = "ts_milliseconds" ) ]
52
54
pub created : DateTime < Utc > ,
53
55
/// the name of the unit used in platform UI
56
+ #[ serde( default ) ]
54
57
pub title : Option < String > ,
55
58
/// arbitrary text used in platform UI
59
+ #[ serde( default ) ]
56
60
pub description : Option < String > ,
57
61
#[ serde( default ) ]
58
62
pub webiste : Option < String > ,
You can’t perform that action at this time.
0 commit comments