pub struct SupportedX402PaymentKindsResponse {
pub kinds: Vec<X402SupportedPaymentKind>,
}
Expand description
SupportedX402PaymentKindsResponse
JSON schema
{
"type": "object",
"required": [
"kinds"
],
"properties": {
"kinds": {
"description": "The list of supported payment kinds.",
"examples": [
[
{
"network": "base",
"scheme": "exact",
"x402Version": 1
},
{
"network": "base-sepolia",
"scheme": "exact",
"x402Version": 1
}
]
],
"type": "array",
"items": {
"$ref": "#/components/schemas/x402SupportedPaymentKind"
}
}
}
}
Fields§
§kinds: Vec<X402SupportedPaymentKind>
The list of supported payment kinds.
Implementations§
Trait Implementations§
Source§impl Clone for SupportedX402PaymentKindsResponse
impl Clone for SupportedX402PaymentKindsResponse
Source§fn clone(&self) -> SupportedX402PaymentKindsResponse
fn clone(&self) -> SupportedX402PaymentKindsResponse
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 SupportedX402PaymentKindsResponse
impl<'de> Deserialize<'de> for SupportedX402PaymentKindsResponse
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<&SupportedX402PaymentKindsResponse> for SupportedX402PaymentKindsResponse
impl From<&SupportedX402PaymentKindsResponse> for SupportedX402PaymentKindsResponse
Source§fn from(value: &SupportedX402PaymentKindsResponse) -> Self
fn from(value: &SupportedX402PaymentKindsResponse) -> Self
Converts to this type from the input type.
Source§impl From<SupportedX402PaymentKindsResponse> for SupportedX402PaymentKindsResponse
impl From<SupportedX402PaymentKindsResponse> for SupportedX402PaymentKindsResponse
Source§fn from(value: SupportedX402PaymentKindsResponse) -> Self
fn from(value: SupportedX402PaymentKindsResponse) -> Self
Converts to this type from the input type.
Source§impl TryFrom<SupportedX402PaymentKindsResponse> for SupportedX402PaymentKindsResponse
impl TryFrom<SupportedX402PaymentKindsResponse> for SupportedX402PaymentKindsResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: SupportedX402PaymentKindsResponse,
) -> Result<Self, ConversionError>
fn try_from( value: SupportedX402PaymentKindsResponse, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SupportedX402PaymentKindsResponse
impl RefUnwindSafe for SupportedX402PaymentKindsResponse
impl Send for SupportedX402PaymentKindsResponse
impl Sync for SupportedX402PaymentKindsResponse
impl Unpin for SupportedX402PaymentKindsResponse
impl UnwindSafe for SupportedX402PaymentKindsResponse
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