pub struct VerifyX402PaymentResponse {
pub invalid_reason: Option<X402VerifyInvalidReason>,
pub is_valid: bool,
pub payer: VerifyX402PaymentResponsePayer,
}
Expand description
VerifyX402PaymentResponse
JSON schema
{
"type": "object",
"required": [
"isValid",
"payer"
],
"properties": {
"invalidReason": {
"$ref": "#/components/schemas/x402VerifyInvalidReason"
},
"isValid": {
"description": "Indicates whether the payment is valid.",
"examples": [
false
],
"type": "boolean"
},
"payer": {
"description": "The onchain address of the client that is paying for the resource.\n\nFor EVM networks, the payer will be a 0x-prefixed, checksum EVM address.\n\nFor Solana-based networks, the payer will be a base58-encoded Solana address.",
"examples": [
"0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
],
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}|[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$"
}
}
}
Fields§
§invalid_reason: Option<X402VerifyInvalidReason>
§is_valid: bool
Indicates whether the payment is valid.
payer: VerifyX402PaymentResponsePayer
The onchain address of the client that is paying for the resource.
For EVM networks, the payer will be a 0x-prefixed, checksum EVM address.
For Solana-based networks, the payer will be a base58-encoded Solana address.
Implementations§
Source§impl VerifyX402PaymentResponse
impl VerifyX402PaymentResponse
pub fn builder() -> VerifyX402PaymentResponse
Trait Implementations§
Source§impl Clone for VerifyX402PaymentResponse
impl Clone for VerifyX402PaymentResponse
Source§fn clone(&self) -> VerifyX402PaymentResponse
fn clone(&self) -> VerifyX402PaymentResponse
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 VerifyX402PaymentResponse
impl Debug for VerifyX402PaymentResponse
Source§impl<'de> Deserialize<'de> for VerifyX402PaymentResponse
impl<'de> Deserialize<'de> for VerifyX402PaymentResponse
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<&VerifyX402PaymentResponse> for VerifyX402PaymentResponse
impl From<&VerifyX402PaymentResponse> for VerifyX402PaymentResponse
Source§fn from(value: &VerifyX402PaymentResponse) -> Self
fn from(value: &VerifyX402PaymentResponse) -> Self
Converts to this type from the input type.
Source§impl From<VerifyX402PaymentResponse> for VerifyX402PaymentResponse
impl From<VerifyX402PaymentResponse> for VerifyX402PaymentResponse
Source§fn from(value: VerifyX402PaymentResponse) -> Self
fn from(value: VerifyX402PaymentResponse) -> Self
Converts to this type from the input type.
Source§impl TryFrom<VerifyX402PaymentResponse> for VerifyX402PaymentResponse
impl TryFrom<VerifyX402PaymentResponse> for VerifyX402PaymentResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: VerifyX402PaymentResponse) -> Result<Self, ConversionError>
fn try_from(value: VerifyX402PaymentResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for VerifyX402PaymentResponse
impl RefUnwindSafe for VerifyX402PaymentResponse
impl Send for VerifyX402PaymentResponse
impl Sync for VerifyX402PaymentResponse
impl Unpin for VerifyX402PaymentResponse
impl UnwindSafe for VerifyX402PaymentResponse
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