pub struct PartnerRevenueModel {
pub markup_amount: Option<i64>,
pub markup_type: Option<String>,
}
Expand description
Settings that control how partner revenue is calculated.
This type is not used in any activity, and only used as part of another schema.
Fields§
§markup_amount: Option<i64>
Required. The markup amount of the partner revenue model. Must be greater than or equal to 0. * When the markup_type is set to be PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM
, this field represents the CPM markup in micros of advertiser’s currency. For example, 1500000 represents 1.5 standard units of the currency. * When the markup_type is set to be PARTNER_REVENUE_MODEL_MARKUP_TYPE_MEDIA_COST_MARKUP
, this field represents the media cost percent markup in millis. For example, 100 represents 0.1% (decimal 0.001). * When the markup_type is set to be PARTNER_REVENUE_MODEL_MARKUP_TYPE_TOTAL_MEDIA_COST_MARKUP
, this field represents the total media cost percent markup in millis. For example, 100 represents 0.1% (decimal 0.001).
markup_type: Option<String>
Required. The markup type of the partner revenue model.
Trait Implementations§
Source§impl Clone for PartnerRevenueModel
impl Clone for PartnerRevenueModel
Source§fn clone(&self) -> PartnerRevenueModel
fn clone(&self) -> PartnerRevenueModel
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PartnerRevenueModel
impl Debug for PartnerRevenueModel
Source§impl Default for PartnerRevenueModel
impl Default for PartnerRevenueModel
Source§fn default() -> PartnerRevenueModel
fn default() -> PartnerRevenueModel
Source§impl<'de> Deserialize<'de> for PartnerRevenueModel
impl<'de> Deserialize<'de> for PartnerRevenueModel
Source§fn 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>,
Source§impl Serialize for PartnerRevenueModel
impl Serialize for PartnerRevenueModel
impl Part for PartnerRevenueModel
Auto Trait Implementations§
impl Freeze for PartnerRevenueModel
impl RefUnwindSafe for PartnerRevenueModel
impl Send for PartnerRevenueModel
impl Sync for PartnerRevenueModel
impl Unpin for PartnerRevenueModel
impl UnwindSafe for PartnerRevenueModel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more