Struct primitives::AdSlot

source ·
pub struct AdSlot {
    pub ipfs: IPFS,
    pub ad_type: String,
    pub min_per_impression: Option<HashMap<Address, UnifiedNum>>,
    pub rules: Rules,
    pub fallback_unit: Option<IPFS>,
    pub owner: ValidatorId,
    pub created: DateTime<Utc>,
    pub title: Option<String>,
    pub description: Option<String>,
    pub website: Option<String>,
    pub archived: bool,
    pub modified: Option<DateTime<Utc>>,
}
Expand description

Fields

ipfs: IPFS

valid ipfs hash of spec props below

ad_type: String

The type of the AdSlot currently, possible values are:

legacy_300x250, legacy_250x250, legacy_240x400, legacy_336x280, legacy_180x150, legacy_300x100, legacy_720x300, legacy_468x60, legacy_234x60, legacy_88x31, legacy_120x90, legacy_120x60, legacy_120x240, legacy_125x125, legacy_728x90, legacy_160x600, legacy_120x600, legacy_300x600 see IAB ad unit guidelines and iab_flex_{adUnitName} (see IAB’s new ad portfolio and PDF)

min_per_impression: Option<HashMap<Address, UnifiedNum>>

The minimum IMPRESSION payment accepted for the slot per deposit asset (token address).

HashMap<DepositAsset, UnifiedNum>

rules: Rulesfallback_unit: Option<IPFS>

Valid ipfs hash for Ad Unit object. It will be used as fallback data (optional)

owner: ValidatorId

The AdSlot owner (Publisher)

created: DateTime<Utc>

UTC timestamp in milliseconds, used as nonce for escaping duplicated spec ipfs hashes

title: Option<String>

The name of the unit used in platform UI

description: Option<String>

arbitrary text used in platform UI

website: Option<String>archived: bool

user can change it - used for filtering in platform UI

modified: Option<DateTime<Utc>>

UTC timestamp in milliseconds, changed every time modifiable property is changed

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more