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