pub struct PortalSubscriptionUpdate {
pub default_allowed_updates: Vec<PortalSubscriptionUpdateDefaultAllowedUpdates>,
pub enabled: bool,
pub products: Option<Vec<PortalSubscriptionUpdateProduct>>,
pub proration_behavior: PortalSubscriptionUpdateProrationBehavior,
}
Fields§
§default_allowed_updates: Vec<PortalSubscriptionUpdateDefaultAllowedUpdates>
The types of subscription updates that are supported for items listed in the products
attribute.
When empty, subscriptions are not updateable.
enabled: bool
Whether the feature is enabled.
products: Option<Vec<PortalSubscriptionUpdateProduct>>
The list of up to 10 products that support subscription updates.
proration_behavior: PortalSubscriptionUpdateProrationBehavior
Determines how to handle prorations resulting from subscription updates.
Valid values are none
, create_prorations
, and always_invoice
.
Trait Implementations§
source§impl Clone for PortalSubscriptionUpdate
impl Clone for PortalSubscriptionUpdate
source§fn clone(&self) -> PortalSubscriptionUpdate
fn clone(&self) -> PortalSubscriptionUpdate
Returns a copy 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 PortalSubscriptionUpdate
impl Debug for PortalSubscriptionUpdate
source§impl Default for PortalSubscriptionUpdate
impl Default for PortalSubscriptionUpdate
source§fn default() -> PortalSubscriptionUpdate
fn default() -> PortalSubscriptionUpdate
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PortalSubscriptionUpdate
impl<'de> Deserialize<'de> for PortalSubscriptionUpdate
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
Auto Trait Implementations§
impl RefUnwindSafe for PortalSubscriptionUpdate
impl Send for PortalSubscriptionUpdate
impl Sync for PortalSubscriptionUpdate
impl Unpin for PortalSubscriptionUpdate
impl UnwindSafe for PortalSubscriptionUpdate
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