pub struct UpdateSubscription {
pub status: Option<SubscriptionStatus>,
pub price: Option<Decimal>,
pub payment_method_id: Option<String>,
pub shipping_address: Option<Address>,
pub billing_address: Option<Address>,
pub next_billing_date: Option<DateTime<Utc>>,
pub discount_percent: Option<Decimal>,
pub discount_amount: Option<Decimal>,
pub coupon_code: Option<String>,
pub metadata: Option<Value>,
}Expand description
Update a subscription
Fields§
§status: Option<SubscriptionStatus>§price: Option<Decimal>§payment_method_id: Option<String>§shipping_address: Option<Address>§billing_address: Option<Address>§next_billing_date: Option<DateTime<Utc>>§discount_percent: Option<Decimal>§discount_amount: Option<Decimal>§coupon_code: Option<String>§metadata: Option<Value>Trait Implementations§
Source§impl Clone for UpdateSubscription
impl Clone for UpdateSubscription
Source§fn clone(&self) -> UpdateSubscription
fn clone(&self) -> UpdateSubscription
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 UpdateSubscription
impl Debug for UpdateSubscription
Source§impl Default for UpdateSubscription
impl Default for UpdateSubscription
Source§fn default() -> UpdateSubscription
fn default() -> UpdateSubscription
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateSubscription
impl<'de> Deserialize<'de> for UpdateSubscription
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdateSubscription, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdateSubscription, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for UpdateSubscription
impl Serialize for UpdateSubscription
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for UpdateSubscription
impl RefUnwindSafe for UpdateSubscription
impl Send for UpdateSubscription
impl Sync for UpdateSubscription
impl Unpin for UpdateSubscription
impl UnsafeUnpin for UpdateSubscription
impl UnwindSafe for UpdateSubscription
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