pub struct CreateX402PaymentIntent {Show 17 fields
pub payer_address: String,
pub payee_address: String,
pub amount: u64,
pub asset: X402Asset,
pub network: X402Network,
pub nonce: Option<u64>,
pub validity_seconds: Option<u64>,
pub resource_uri: Option<String>,
pub resource_method: Option<String>,
pub description: Option<String>,
pub cart_id: Option<Uuid>,
pub order_id: Option<Uuid>,
pub invoice_id: Option<Uuid>,
pub merchant_id: Option<String>,
pub idempotency_key: Option<String>,
pub metadata: Option<String>,
pub signature_scheme: Option<X402SignatureScheme>,
}Expand description
Input for creating an x402 payment intent
Fields§
§payer_address: StringPayer wallet address
payee_address: StringPayee wallet address
amount: u64Amount in smallest unit
asset: X402AssetPayment asset
network: X402NetworkTarget network
nonce: Option<u64>Nonce for replay protection
validity_seconds: Option<u64>Validity window in seconds
resource_uri: Option<String>Resource URI this payment unlocks
resource_method: Option<String>HTTP method for resource
description: Option<String>Description
cart_id: Option<Uuid>Associated cart ID (for checkout flows)
order_id: Option<Uuid>Associated order ID
invoice_id: Option<Uuid>Associated invoice ID
merchant_id: Option<String>Merchant ID
idempotency_key: Option<String>Idempotency key
metadata: Option<String>Additional metadata
signature_scheme: Option<X402SignatureScheme>Preferred signature scheme for this intent. Absent = hybrid default.
Trait Implementations§
Source§impl Clone for CreateX402PaymentIntent
impl Clone for CreateX402PaymentIntent
Source§fn clone(&self) -> CreateX402PaymentIntent
fn clone(&self) -> CreateX402PaymentIntent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateX402PaymentIntent
impl Debug for CreateX402PaymentIntent
Source§impl Default for CreateX402PaymentIntent
impl Default for CreateX402PaymentIntent
Source§fn default() -> CreateX402PaymentIntent
fn default() -> CreateX402PaymentIntent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateX402PaymentIntent
impl<'de> Deserialize<'de> for CreateX402PaymentIntent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateX402PaymentIntent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateX402PaymentIntent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CreateX402PaymentIntent
impl Serialize for CreateX402PaymentIntent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for CreateX402PaymentIntent
impl RefUnwindSafe for CreateX402PaymentIntent
impl Send for CreateX402PaymentIntent
impl Sync for CreateX402PaymentIntent
impl Unpin for CreateX402PaymentIntent
impl UnsafeUnpin for CreateX402PaymentIntent
impl UnwindSafe for CreateX402PaymentIntent
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