pub struct SubscriptionRef {
pub at_period_end: Option<bool>,
pub id: Option<String>,
}Fields§
§at_period_end: Option<bool>AtPeriodEnd cancels at the end of the paid period rather than at once. It defaults TRUE on the endpoint, because a customer who cancels has already paid for the period they are in.
id: Option<String>Implementations§
Source§impl SubscriptionRef
impl SubscriptionRef
pub fn new() -> SubscriptionRef
Trait Implementations§
Source§impl Clone for SubscriptionRef
impl Clone for SubscriptionRef
Source§fn clone(&self) -> SubscriptionRef
fn clone(&self) -> SubscriptionRef
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 SubscriptionRef
impl Debug for SubscriptionRef
Source§impl Default for SubscriptionRef
impl Default for SubscriptionRef
Source§fn default() -> SubscriptionRef
fn default() -> SubscriptionRef
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SubscriptionRef
impl<'de> Deserialize<'de> for SubscriptionRef
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 PartialEq for SubscriptionRef
impl PartialEq for SubscriptionRef
Source§impl Serialize for SubscriptionRef
impl Serialize for SubscriptionRef
impl StructuralPartialEq for SubscriptionRef
Auto Trait Implementations§
impl Freeze for SubscriptionRef
impl RefUnwindSafe for SubscriptionRef
impl Send for SubscriptionRef
impl Sync for SubscriptionRef
impl Unpin for SubscriptionRef
impl UnsafeUnpin for SubscriptionRef
impl UnwindSafe for SubscriptionRef
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