Struct adview_manager::manager::Options
source · pub struct Options {
pub market_url: ApiUrl,
pub market_slot: IPFS,
pub publisher_addr: Address,
pub whitelisted_tokens: HashSet<Address>,
pub size: Option<Size>,
pub navigator_language: Option<String>,
pub disabled_video: bool,
pub disabled_sticky: bool,
pub validators: Vec<ApiUrl>,
}
Expand description
The Ad Manager
’s options for showing ads.
Fields
market_url: ApiUrl
market_slot: IPFS
publisher_addr: Address
whitelisted_tokens: HashSet<Address>
All passed tokens must be of the same price and decimals, so that the amounts can be accurately compared
size: Option<Size>
disabled_video: bool
Whether or not to disable Video ads.
default: false
disabled_sticky: bool
Whether or not to disable Sticky Ads ([AdUnit
]s).
default: false
validators: Vec<ApiUrl>
List of validators to query /units-for-slot from
The list is prioritized, i.e. the validator listed on first position will have priority over the second, the second over the third and so on.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Options
impl<'de> Deserialize<'de> for Options
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Options
impl StructuralEq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.