pub struct X402SupportedPaymentKind {
pub network: X402SupportedPaymentKindNetwork,
pub scheme: X402SupportedPaymentKindScheme,
pub x402_version: X402Version,
}
Expand description
The supported payment kind for the x402 protocol. A kind is comprised of a scheme and a network, which together uniquely identify a way to move money on the x402 protocol. For more details, please see x402 Schemes.
JSON schema
{
"description": "The supported payment kind for the x402 protocol. A kind is comprised of a scheme and a network, which together uniquely identify a way to move money on the x402 protocol. For more details, please see [x402 Schemes](https://github.com/coinbase/x402?tab=readme-ov-file#schemes).",
"type": "object",
"required": [
"network",
"scheme",
"x402Version"
],
"properties": {
"network": {
"description": "The network of the blockchain.",
"examples": [
"base"
],
"type": "string",
"enum": [
"base-sepolia",
"base"
]
},
"scheme": {
"description": "The scheme of the payment protocol.",
"examples": [
"exact"
],
"type": "string",
"enum": [
"exact"
]
},
"x402Version": {
"$ref": "#/components/schemas/X402Version"
}
}
}
Fields§
§network: X402SupportedPaymentKindNetwork
The network of the blockchain.
scheme: X402SupportedPaymentKindScheme
The scheme of the payment protocol.
x402_version: X402Version
Implementations§
Source§impl X402SupportedPaymentKind
impl X402SupportedPaymentKind
pub fn builder() -> X402SupportedPaymentKind
Trait Implementations§
Source§impl Clone for X402SupportedPaymentKind
impl Clone for X402SupportedPaymentKind
Source§fn clone(&self) -> X402SupportedPaymentKind
fn clone(&self) -> X402SupportedPaymentKind
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 X402SupportedPaymentKind
impl Debug for X402SupportedPaymentKind
Source§impl<'de> Deserialize<'de> for X402SupportedPaymentKind
impl<'de> Deserialize<'de> for X402SupportedPaymentKind
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<&X402SupportedPaymentKind> for X402SupportedPaymentKind
impl From<&X402SupportedPaymentKind> for X402SupportedPaymentKind
Source§fn from(value: &X402SupportedPaymentKind) -> Self
fn from(value: &X402SupportedPaymentKind) -> Self
Converts to this type from the input type.
Source§impl From<X402SupportedPaymentKind> for X402SupportedPaymentKind
impl From<X402SupportedPaymentKind> for X402SupportedPaymentKind
Source§fn from(value: X402SupportedPaymentKind) -> Self
fn from(value: X402SupportedPaymentKind) -> Self
Converts to this type from the input type.
Source§impl Serialize for X402SupportedPaymentKind
impl Serialize for X402SupportedPaymentKind
Source§impl TryFrom<X402SupportedPaymentKind> for X402SupportedPaymentKind
impl TryFrom<X402SupportedPaymentKind> for X402SupportedPaymentKind
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: X402SupportedPaymentKind) -> Result<Self, ConversionError>
fn try_from(value: X402SupportedPaymentKind) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for X402SupportedPaymentKind
impl RefUnwindSafe for X402SupportedPaymentKind
impl Send for X402SupportedPaymentKind
impl Sync for X402SupportedPaymentKind
impl Unpin for X402SupportedPaymentKind
impl UnwindSafe for X402SupportedPaymentKind
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