Struct primitives::targeting::Output
source · pub struct Output {
pub show: bool,
pub boost: f64,
pub price: HashMap<EventType, UnifiedNum>,
}
Fields
show: bool
Whether to show the ad Default: true
boost: f64
The boost is a number between 0 and 5 that increases the likelyhood for the ad to be chosen if there is random selection applied on the AdView (multiple ad candidates with the same price) Default: 1.0
price: HashMap<EventType, UnifiedNum>
price.{eventType} For example: price.IMPRESSION The default is the min of the bound of event type: The price is per one event Default: pricingBounds.IMPRESSION.min
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnwindSafe for Output
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