pub struct InvoicePreviewSubscriptions {
pub external_ids: Vec<String>,
pub plan_code: Option<String>,
pub terminated_at: Option<String>,
}Expand description
Subscription information for invoice preview.
Used to specify existing subscriptions to include in the preview, with optional plan changes or termination.
Fields§
§external_ids: Vec<String>§plan_code: Option<String>§terminated_at: Option<String>Implementations§
Source§impl InvoicePreviewSubscriptions
impl InvoicePreviewSubscriptions
pub fn with_plan_code(self, plan_code: String) -> Self
pub fn with_terminated_at(self, terminated_at: String) -> Self
Trait Implementations§
Source§impl Clone for InvoicePreviewSubscriptions
impl Clone for InvoicePreviewSubscriptions
Source§fn clone(&self) -> InvoicePreviewSubscriptions
fn clone(&self) -> InvoicePreviewSubscriptions
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 InvoicePreviewSubscriptions
impl Debug for InvoicePreviewSubscriptions
Source§impl<'de> Deserialize<'de> for InvoicePreviewSubscriptions
impl<'de> Deserialize<'de> for InvoicePreviewSubscriptions
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 Freeze for InvoicePreviewSubscriptions
impl RefUnwindSafe for InvoicePreviewSubscriptions
impl Send for InvoicePreviewSubscriptions
impl Sync for InvoicePreviewSubscriptions
impl Unpin for InvoicePreviewSubscriptions
impl UnwindSafe for InvoicePreviewSubscriptions
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