pub struct BillingCycleOutput {Show 17 fields
pub id: String,
pub subscription_id: String,
pub cycle_number: i32,
pub status: String,
pub period_start: String,
pub period_end: String,
pub subtotal: f64,
pub discount: f64,
pub tax: f64,
pub total: f64,
pub currency: String,
pub payment_id: Option<String>,
pub billed_at: Option<String>,
pub failure_reason: Option<String>,
pub retry_count: i32,
pub created_at: String,
pub updated_at: String,
}Fields§
§id: String§subscription_id: String§cycle_number: i32§status: String§period_start: String§period_end: String§subtotal: f64§discount: f64§tax: f64§total: f64§currency: String§payment_id: Option<String>§billed_at: Option<String>§failure_reason: Option<String>§retry_count: i32§created_at: String§updated_at: StringTrait Implementations§
Source§impl Clone for BillingCycleOutput
impl Clone for BillingCycleOutput
Source§fn clone(&self) -> BillingCycleOutput
fn clone(&self) -> BillingCycleOutput
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 BillingCycleOutput
impl<'de> Deserialize<'de> for BillingCycleOutput
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 From<BillingCycle> for BillingCycleOutput
impl From<BillingCycle> for BillingCycleOutput
Source§fn from(b: BillingCycle) -> Self
fn from(b: BillingCycle) -> Self
Converts to this type from the input type.
Source§impl FromNapiValue for BillingCycleOutput
impl FromNapiValue for BillingCycleOutput
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 Serialize for BillingCycleOutput
impl Serialize for BillingCycleOutput
Source§impl ToNapiValue for BillingCycleOutput
impl ToNapiValue for BillingCycleOutput
Source§unsafe fn to_napi_value(
env: napi_env,
val: BillingCycleOutput,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: BillingCycleOutput, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for BillingCycleOutput
impl TypeName for BillingCycleOutput
Source§impl ValidateNapiValue for BillingCycleOutput
impl ValidateNapiValue for BillingCycleOutput
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 BillingCycleOutput
impl RefUnwindSafe for BillingCycleOutput
impl Send for BillingCycleOutput
impl Sync for BillingCycleOutput
impl Unpin for BillingCycleOutput
impl UnsafeUnpin for BillingCycleOutput
impl UnwindSafe for BillingCycleOutput
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