pub struct UpdateSubscriptionPlanInput {
pub name: Option<String>,
pub description: Option<String>,
pub price: Option<f64>,
pub setup_fee: Option<f64>,
pub trial_days: Option<i32>,
pub trial_requires_payment_method: Option<bool>,
pub min_cycles: Option<i32>,
pub max_cycles: Option<i32>,
pub discount_percent: Option<f64>,
pub discount_amount: Option<f64>,
}Fields§
§name: Option<String>§description: Option<String>§price: Option<f64>§setup_fee: Option<f64>§trial_days: Option<i32>§trial_requires_payment_method: Option<bool>§min_cycles: Option<i32>§max_cycles: Option<i32>§discount_percent: Option<f64>§discount_amount: Option<f64>Trait Implementations§
Source§impl Clone for UpdateSubscriptionPlanInput
impl Clone for UpdateSubscriptionPlanInput
Source§fn clone(&self) -> UpdateSubscriptionPlanInput
fn clone(&self) -> UpdateSubscriptionPlanInput
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<'de> Deserialize<'de> for UpdateSubscriptionPlanInput
impl<'de> Deserialize<'de> for UpdateSubscriptionPlanInput
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 FromNapiValue for UpdateSubscriptionPlanInput
impl FromNapiValue for UpdateSubscriptionPlanInput
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl ToNapiValue for UpdateSubscriptionPlanInput
impl ToNapiValue for UpdateSubscriptionPlanInput
Source§unsafe fn to_napi_value(
env: napi_env,
val: UpdateSubscriptionPlanInput,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: UpdateSubscriptionPlanInput, ) -> Result<napi_value>
Safety Read more
Source§impl ValidateNapiValue for UpdateSubscriptionPlanInput
impl ValidateNapiValue for UpdateSubscriptionPlanInput
Source§unsafe fn validate(
env: *mut napi_env__,
napi_val: *mut napi_value__,
) -> Result<*mut napi_value__, Error>
unsafe fn validate( env: *mut napi_env__, napi_val: *mut napi_value__, ) -> Result<*mut napi_value__, Error>
Safety Read more
Auto Trait Implementations§
impl Freeze for UpdateSubscriptionPlanInput
impl RefUnwindSafe for UpdateSubscriptionPlanInput
impl Send for UpdateSubscriptionPlanInput
impl Sync for UpdateSubscriptionPlanInput
impl Unpin for UpdateSubscriptionPlanInput
impl UnsafeUnpin for UpdateSubscriptionPlanInput
impl UnwindSafe for UpdateSubscriptionPlanInput
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