pub struct CreatePaymentInput {
pub order_id: Option<String>,
pub invoice_id: Option<String>,
pub customer_id: Option<String>,
pub idempotency_key: Option<String>,
pub amount: f64,
pub currency: Option<String>,
pub payment_method: Option<String>,
}Fields§
§order_id: Option<String>§invoice_id: Option<String>§customer_id: Option<String>§idempotency_key: Option<String>§amount: f64§currency: Option<String>§payment_method: Option<String>Trait Implementations§
Source§impl Clone for CreatePaymentInput
impl Clone for CreatePaymentInput
Source§fn clone(&self) -> CreatePaymentInput
fn clone(&self) -> CreatePaymentInput
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 CreatePaymentInput
impl<'de> Deserialize<'de> for CreatePaymentInput
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 CreatePaymentInput
impl FromNapiValue for CreatePaymentInput
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 CreatePaymentInput
impl Serialize for CreatePaymentInput
Source§impl ToNapiValue for CreatePaymentInput
impl ToNapiValue for CreatePaymentInput
Source§unsafe fn to_napi_value(
env: napi_env,
val: CreatePaymentInput,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: CreatePaymentInput, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for CreatePaymentInput
impl TypeName for CreatePaymentInput
Source§impl ValidateNapiValue for CreatePaymentInput
impl ValidateNapiValue for CreatePaymentInput
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 CreatePaymentInput
impl RefUnwindSafe for CreatePaymentInput
impl Send for CreatePaymentInput
impl Sync for CreatePaymentInput
impl Unpin for CreatePaymentInput
impl UnsafeUnpin for CreatePaymentInput
impl UnwindSafe for CreatePaymentInput
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