pub struct SubscriptionOfferPhase {
pub duration: Option<String>,
pub other_regions_config: Option<OtherRegionsSubscriptionOfferPhaseConfig>,
pub recurrence_count: Option<i32>,
pub regional_configs: Option<Vec<RegionalSubscriptionOfferPhaseConfig>>,
}Expand description
A single phase of a subscription offer.
This type is not used in any activity, and only used as part of another schema.
Fields§
§duration: Option<String>Required. The duration of a single recurrence of this phase. Specified in ISO 8601 format.
other_regions_config: Option<OtherRegionsSubscriptionOfferPhaseConfig>Pricing information for any new locations Play may launch in.
recurrence_count: Option<i32>Required. The number of times this phase repeats. If this offer phase is not free, each recurrence charges the user the price of this offer phase.
regional_configs: Option<Vec<RegionalSubscriptionOfferPhaseConfig>>Required. The region-specific configuration of this offer phase. This list must contain exactly one entry for each region for which the subscription offer has a regional config.
Trait Implementations§
Source§impl Clone for SubscriptionOfferPhase
impl Clone for SubscriptionOfferPhase
Source§fn clone(&self) -> SubscriptionOfferPhase
fn clone(&self) -> SubscriptionOfferPhase
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 SubscriptionOfferPhase
impl Debug for SubscriptionOfferPhase
Source§impl Default for SubscriptionOfferPhase
impl Default for SubscriptionOfferPhase
Source§fn default() -> SubscriptionOfferPhase
fn default() -> SubscriptionOfferPhase
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SubscriptionOfferPhase
impl<'de> Deserialize<'de> for SubscriptionOfferPhase
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 SubscriptionOfferPhase
impl Serialize for SubscriptionOfferPhase
impl Part for SubscriptionOfferPhase
Auto Trait Implementations§
impl Freeze for SubscriptionOfferPhase
impl RefUnwindSafe for SubscriptionOfferPhase
impl Send for SubscriptionOfferPhase
impl Sync for SubscriptionOfferPhase
impl Unpin for SubscriptionOfferPhase
impl UnwindSafe for SubscriptionOfferPhase
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