pub enum X402PaymentPayload {
X402v1PaymentPayload(X402V1PaymentPayload),
X402v2PaymentPayload(X402V2PaymentPayload),
}Expand description
The x402 protocol payment payload that the client attaches to x402-paid API requests to the resource server in the X-PAYMENT header.
JSON schema
{
"description": "The x402 protocol payment payload that the client attaches to x402-paid API requests to the resource server in the X-PAYMENT header.",
"type": "object",
"oneOf": [
{
"$ref": "#/components/schemas/x402V1PaymentPayload"
},
{
"$ref": "#/components/schemas/x402V2PaymentPayload"
}
]
}Variants§
X402v1PaymentPayload(X402V1PaymentPayload)
X402v2PaymentPayload(X402V2PaymentPayload)
Trait Implementations§
Source§impl Clone for X402PaymentPayload
impl Clone for X402PaymentPayload
Source§fn clone(&self) -> X402PaymentPayload
fn clone(&self) -> X402PaymentPayload
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 Debug for X402PaymentPayload
impl Debug for X402PaymentPayload
Source§impl<'de> Deserialize<'de> for X402PaymentPayload
impl<'de> Deserialize<'de> for X402PaymentPayload
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<&X402PaymentPayload> for X402PaymentPayload
impl From<&X402PaymentPayload> for X402PaymentPayload
Source§fn from(value: &X402PaymentPayload) -> Self
fn from(value: &X402PaymentPayload) -> Self
Converts to this type from the input type.
Source§impl From<X402V1PaymentPayload> for X402PaymentPayload
impl From<X402V1PaymentPayload> for X402PaymentPayload
Source§fn from(value: X402V1PaymentPayload) -> Self
fn from(value: X402V1PaymentPayload) -> Self
Converts to this type from the input type.
Source§impl From<X402V2PaymentPayload> for X402PaymentPayload
impl From<X402V2PaymentPayload> for X402PaymentPayload
Source§fn from(value: X402V2PaymentPayload) -> Self
fn from(value: X402V2PaymentPayload) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for X402PaymentPayload
impl RefUnwindSafe for X402PaymentPayload
impl Send for X402PaymentPayload
impl Sync for X402PaymentPayload
impl Unpin for X402PaymentPayload
impl UnwindSafe for X402PaymentPayload
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