Struct primitives::config::limits::UnitsForSlot
source · pub struct UnitsForSlot {
pub max_campaigns_earning_from: u16,
pub global_min_impression_price: UnifiedNum,
}
Expand description
Limits applied to the POST /units-for-slot
route
Fields
max_campaigns_earning_from: u16
The maximum number of campaigns a publisher can earn from. This will limit the returned Campaigns to the set number.
global_min_impression_price: UnifiedNum
If the resulting targeting price is lower than this value, it will filter out the given AdUnit.
Trait Implementations
sourceimpl Clone for UnitsForSlot
impl Clone for UnitsForSlot
sourcefn clone(&self) -> UnitsForSlot
fn clone(&self) -> UnitsForSlot
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for UnitsForSlot
impl Debug for UnitsForSlot
sourceimpl<'de> Deserialize<'de> for UnitsForSlot
impl<'de> Deserialize<'de> for UnitsForSlot
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
sourceimpl PartialEq<UnitsForSlot> for UnitsForSlot
impl PartialEq<UnitsForSlot> for UnitsForSlot
sourcefn eq(&self, other: &UnitsForSlot) -> bool
fn eq(&self, other: &UnitsForSlot) -> bool
sourceimpl Serialize for UnitsForSlot
impl Serialize for UnitsForSlot
impl Eq for UnitsForSlot
impl StructuralEq for UnitsForSlot
impl StructuralPartialEq for UnitsForSlot
Auto Trait Implementations
impl RefUnwindSafe for UnitsForSlot
impl Send for UnitsForSlot
impl Sync for UnitsForSlot
impl Unpin for UnitsForSlot
impl UnwindSafe for UnitsForSlot
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