Skip to content

Commit 9d28c7b

Browse files
committed
primitives - AdSlot - docs improvement
1 parent aadd086 commit 9d28c7b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

primitives/src/ad_slot.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,24 @@ pub struct AdSlot {
2525
/// see IAB ad unit guidelines and iab_flex_{adUnitName} (see IAB's new ad portfolio and PDF)
2626
#[serde(rename = "type")]
2727
pub ad_type: String,
28-
/// HashMap<DepositAsset, UnifiedNum> for the minimum payment accepted per impression
28+
/// The minimum [`IMPRESSION`] payment accepted for the slot per deposit asset (token address).
29+
///
30+
/// `HashMap<DepositAsset, UnifiedNum>`
31+
///
32+
/// [`IMPRESSION`]: crate::sentry::IMPRESSION
2933
#[serde(default)]
3034
pub min_per_impression: Option<HashMap<Address, UnifiedNum>>,
3135
#[serde(default)]
3236
pub rules: Rules,
3337
/// Valid ipfs hash for Ad Unit object. It will be used as fallback data (optional)
3438
#[serde(default)]
3539
pub fallback_unit: Option<IPFS>,
36-
/// User address from the session
40+
/// The AdSlot owner (Publisher)
3741
pub owner: ValidatorId,
3842
/// UTC timestamp in milliseconds, used as nonce for escaping duplicated spec ipfs hashes
3943
#[serde(with = "ts_milliseconds")]
4044
pub created: DateTime<Utc>,
41-
/// the name of the unit used in platform UI
45+
/// The name of the unit used in platform UI
4246
#[serde(default)]
4347
pub title: Option<String>,
4448
/// arbitrary text used in platform UI

0 commit comments

Comments
 (0)