pub struct UpgradeTargetingRule {
pub billing_period_duration: Option<String>,
pub once_per_user: Option<bool>,
pub scope: Option<TargetingRuleScope>,
}Expand description
Represents a targeting rule of the form: User currently has {scope} [with billing period {billing_period}].
This type is not used in any activity, and only used as part of another schema.
Fields§
§billing_period_duration: Option<String>The specific billing period duration, specified in ISO 8601 format, that a user must be currently subscribed to to be eligible for this rule. If not specified, users subscribed to any billing period are matched.
once_per_user: Option<bool>Limit this offer to only once per user. If set to true, a user can never be eligible for this offer again if they ever subscribed to this offer.
scope: Option<TargetingRuleScope>Required. The scope of subscriptions this rule considers. Only allows “this subscription” and “specific subscription in app”.
Trait Implementations§
Source§impl Clone for UpgradeTargetingRule
impl Clone for UpgradeTargetingRule
Source§fn clone(&self) -> UpgradeTargetingRule
fn clone(&self) -> UpgradeTargetingRule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UpgradeTargetingRule
impl Debug for UpgradeTargetingRule
Source§impl Default for UpgradeTargetingRule
impl Default for UpgradeTargetingRule
Source§fn default() -> UpgradeTargetingRule
fn default() -> UpgradeTargetingRule
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpgradeTargetingRule
impl<'de> Deserialize<'de> for UpgradeTargetingRule
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Part for UpgradeTargetingRule
Auto Trait Implementations§
impl Freeze for UpgradeTargetingRule
impl RefUnwindSafe for UpgradeTargetingRule
impl Send for UpgradeTargetingRule
impl Sync for UpgradeTargetingRule
impl Unpin for UpgradeTargetingRule
impl UnsafeUnpin for UpgradeTargetingRule
impl UnwindSafe for UpgradeTargetingRule
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
Mutably borrows from an owned value. Read more