pub struct SwapPlanRequest {
pub new_plan_variation_id: Option<Option<String>>,
pub phases: Option<Option<Vec<PhaseInput>>>,
}Expand description
SwapPlanRequest : Defines input parameters in a call to the SwapPlan endpoint.
Fields§
§new_plan_variation_id: Option<Option<String>>The ID of the new subscription plan variation. This field is required.
phases: Option<Option<Vec<PhaseInput>>>A list of PhaseInputs, to pass phase-specific information used in the swap.
Implementations§
Source§impl SwapPlanRequest
impl SwapPlanRequest
Sourcepub fn new() -> SwapPlanRequest
pub fn new() -> SwapPlanRequest
Defines input parameters in a call to the SwapPlan endpoint.
Trait Implementations§
Source§impl Clone for SwapPlanRequest
impl Clone for SwapPlanRequest
Source§fn clone(&self) -> SwapPlanRequest
fn clone(&self) -> SwapPlanRequest
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 SwapPlanRequest
impl Debug for SwapPlanRequest
Source§impl Default for SwapPlanRequest
impl Default for SwapPlanRequest
Source§fn default() -> SwapPlanRequest
fn default() -> SwapPlanRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SwapPlanRequest
impl<'de> Deserialize<'de> for SwapPlanRequest
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 SwapPlanRequest
impl PartialEq for SwapPlanRequest
Source§impl Serialize for SwapPlanRequest
impl Serialize for SwapPlanRequest
impl StructuralPartialEq for SwapPlanRequest
Auto Trait Implementations§
impl Freeze for SwapPlanRequest
impl RefUnwindSafe for SwapPlanRequest
impl Send for SwapPlanRequest
impl Sync for SwapPlanRequest
impl Unpin for SwapPlanRequest
impl UnsafeUnpin for SwapPlanRequest
impl UnwindSafe for SwapPlanRequest
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