pub struct X402CreateIntentInput {Show 16 fields
pub payer_address: String,
pub payee_address: String,
pub amount: i64,
pub asset: Option<String>,
pub network: Option<String>,
pub nonce: Option<i64>,
pub validity_seconds: Option<i64>,
pub resource_uri: Option<String>,
pub resource_method: Option<String>,
pub description: Option<String>,
pub cart_id: Option<String>,
pub order_id: Option<String>,
pub invoice_id: Option<String>,
pub merchant_id: Option<String>,
pub idempotency_key: Option<String>,
pub metadata: Option<String>,
}Fields§
§payer_address: String§payee_address: String§amount: i64§asset: Option<String>§network: Option<String>§nonce: Option<i64>§validity_seconds: Option<i64>§resource_uri: Option<String>§resource_method: Option<String>§description: Option<String>§cart_id: Option<String>§order_id: Option<String>§invoice_id: Option<String>§merchant_id: Option<String>§idempotency_key: Option<String>§metadata: Option<String>Trait Implementations§
Source§impl Clone for X402CreateIntentInput
impl Clone for X402CreateIntentInput
Source§fn clone(&self) -> X402CreateIntentInput
fn clone(&self) -> X402CreateIntentInput
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 X402CreateIntentInput
impl<'de> Deserialize<'de> for X402CreateIntentInput
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 X402CreateIntentInput
impl FromNapiValue for X402CreateIntentInput
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 X402CreateIntentInput
impl Serialize for X402CreateIntentInput
Source§impl ToNapiValue for X402CreateIntentInput
impl ToNapiValue for X402CreateIntentInput
Source§unsafe fn to_napi_value(
env: napi_env,
val: X402CreateIntentInput,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: X402CreateIntentInput, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for X402CreateIntentInput
impl TypeName for X402CreateIntentInput
Source§impl ValidateNapiValue for X402CreateIntentInput
impl ValidateNapiValue for X402CreateIntentInput
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 X402CreateIntentInput
impl RefUnwindSafe for X402CreateIntentInput
impl Send for X402CreateIntentInput
impl Sync for X402CreateIntentInput
impl Unpin for X402CreateIntentInput
impl UnsafeUnpin for X402CreateIntentInput
impl UnwindSafe for X402CreateIntentInput
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