pub struct InitiatePurchaseOutput {
pub purchase_id: Uuid,
pub purchase_number: String,
pub status: PurchaseStatus,
pub payment_intent_id: Uuid,
pub signing_hash: String,
pub amount: u64,
pub amount_display: String,
pub asset: X402Asset,
pub network: X402Network,
pub payee_address: String,
pub valid_until: DateTime<Utc>,
pub cart_id: Option<Uuid>,
}Expand description
Output from initiate_purchase skill
Fields§
§purchase_id: UuidPurchase ID
purchase_number: StringPurchase number (human-readable)
status: PurchaseStatusPurchase status
payment_intent_id: Uuidx402 payment intent for signing
signing_hash: StringSigning hash for the payment
amount: u64Amount to pay (in smallest unit)
amount_display: StringAmount to pay (human-readable)
asset: X402AssetPayment asset
network: X402NetworkPayment network
payee_address: StringPayee address (seller)
valid_until: DateTime<Utc>Validity window for the payment
cart_id: Option<Uuid>Cart ID (if a cart was created)
Trait Implementations§
Source§impl Clone for InitiatePurchaseOutput
impl Clone for InitiatePurchaseOutput
Source§fn clone(&self) -> InitiatePurchaseOutput
fn clone(&self) -> InitiatePurchaseOutput
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 InitiatePurchaseOutput
impl Debug for InitiatePurchaseOutput
Source§impl<'de> Deserialize<'de> for InitiatePurchaseOutput
impl<'de> Deserialize<'de> for InitiatePurchaseOutput
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<InitiatePurchaseOutput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InitiatePurchaseOutput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for InitiatePurchaseOutput
impl Serialize for InitiatePurchaseOutput
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 InitiatePurchaseOutput
impl RefUnwindSafe for InitiatePurchaseOutput
impl Send for InitiatePurchaseOutput
impl Sync for InitiatePurchaseOutput
impl Unpin for InitiatePurchaseOutput
impl UnsafeUnpin for InitiatePurchaseOutput
impl UnwindSafe for InitiatePurchaseOutput
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