pub struct TargetingRuleScope {
pub any_subscription_in_app: Option<TargetingRuleScopeAnySubscriptionInApp>,
pub specific_subscription_in_app: Option<String>,
pub this_subscription: Option<TargetingRuleScopeThisSubscription>,
}Expand description
Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement.
This type is not used in any activity, and only used as part of another schema.
Fields§
§any_subscription_in_app: Option<TargetingRuleScopeAnySubscriptionInApp>The scope of the current targeting rule is any subscription in the parent app.
specific_subscription_in_app: Option<String>The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
this_subscription: Option<TargetingRuleScopeThisSubscription>The scope of the current targeting rule is the subscription in which this offer is defined.
Trait Implementations§
Source§impl Clone for TargetingRuleScope
impl Clone for TargetingRuleScope
Source§fn clone(&self) -> TargetingRuleScope
fn clone(&self) -> TargetingRuleScope
Returns a duplicate of the value. Read more
1.0.0 · 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 TargetingRuleScope
impl Debug for TargetingRuleScope
Source§impl Default for TargetingRuleScope
impl Default for TargetingRuleScope
Source§fn default() -> TargetingRuleScope
fn default() -> TargetingRuleScope
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TargetingRuleScope
impl<'de> Deserialize<'de> for TargetingRuleScope
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
Source§impl Serialize for TargetingRuleScope
impl Serialize for TargetingRuleScope
impl Part for TargetingRuleScope
Auto Trait Implementations§
impl Freeze for TargetingRuleScope
impl RefUnwindSafe for TargetingRuleScope
impl Send for TargetingRuleScope
impl Sync for TargetingRuleScope
impl Unpin for TargetingRuleScope
impl UnwindSafe for TargetingRuleScope
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