pub struct RegionalBasePlanConfig {
pub new_subscriber_availability: Option<bool>,
pub price: Option<Money>,
pub region_code: Option<String>,
}Expand description
Configuration for a base plan specific to a region.
This type is not used in any activity, and only used as part of another schema.
Fields§
§new_subscriber_availability: Option<bool>Whether the base plan in the specified region is available for new subscribers. Existing subscribers will not have their subscription canceled if this value is set to false. If not specified, this will default to false.
price: Option<Money>The price of the base plan in the specified region. Must be set if the base plan is available to new subscribers. Must be set in the currency that is linked to the specified region.
region_code: Option<String>Required. Region code this configuration applies to, as defined by ISO 3166-2, e.g. “US”.
Trait Implementations§
Source§impl Clone for RegionalBasePlanConfig
impl Clone for RegionalBasePlanConfig
Source§fn clone(&self) -> RegionalBasePlanConfig
fn clone(&self) -> RegionalBasePlanConfig
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 RegionalBasePlanConfig
impl Debug for RegionalBasePlanConfig
Source§impl Default for RegionalBasePlanConfig
impl Default for RegionalBasePlanConfig
Source§fn default() -> RegionalBasePlanConfig
fn default() -> RegionalBasePlanConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RegionalBasePlanConfig
impl<'de> Deserialize<'de> for RegionalBasePlanConfig
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 RegionalBasePlanConfig
impl Serialize for RegionalBasePlanConfig
impl Part for RegionalBasePlanConfig
Auto Trait Implementations§
impl Freeze for RegionalBasePlanConfig
impl RefUnwindSafe for RegionalBasePlanConfig
impl Send for RegionalBasePlanConfig
impl Sync for RegionalBasePlanConfig
impl Unpin for RegionalBasePlanConfig
impl UnwindSafe for RegionalBasePlanConfig
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