pub struct CheckoutResultOutput {
pub cart_id: String,
pub order_id: String,
pub order_number: String,
pub payment_id: Option<String>,
pub total_charged: f64,
pub currency: String,
}Fields§
§cart_id: String§order_id: String§order_number: String§payment_id: Option<String>§total_charged: f64§currency: StringTrait Implementations§
Source§impl Clone for CheckoutResultOutput
impl Clone for CheckoutResultOutput
Source§fn clone(&self) -> CheckoutResultOutput
fn clone(&self) -> CheckoutResultOutput
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 CheckoutResultOutput
impl<'de> Deserialize<'de> for CheckoutResultOutput
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<CheckoutResult> for CheckoutResultOutput
impl From<CheckoutResult> for CheckoutResultOutput
Source§fn from(result: CheckoutResult) -> Self
fn from(result: CheckoutResult) -> Self
Converts to this type from the input type.
Source§impl FromNapiValue for CheckoutResultOutput
impl FromNapiValue for CheckoutResultOutput
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 CheckoutResultOutput
impl Serialize for CheckoutResultOutput
Source§impl ToNapiValue for CheckoutResultOutput
impl ToNapiValue for CheckoutResultOutput
Source§unsafe fn to_napi_value(
env: napi_env,
val: CheckoutResultOutput,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: CheckoutResultOutput, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for CheckoutResultOutput
impl TypeName for CheckoutResultOutput
Source§impl ValidateNapiValue for CheckoutResultOutput
impl ValidateNapiValue for CheckoutResultOutput
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 CheckoutResultOutput
impl RefUnwindSafe for CheckoutResultOutput
impl Send for CheckoutResultOutput
impl Sync for CheckoutResultOutput
impl Unpin for CheckoutResultOutput
impl UnsafeUnpin for CheckoutResultOutput
impl UnwindSafe for CheckoutResultOutput
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