pub struct X402ValidateSimulation {
pub outcome: X402ValidateSimulationOutcome,
pub rejection_reason: Option<String>,
}Expand description
The simulated facilitator decision for the x402 endpoint.
JSON schema
{
"description": "The simulated facilitator decision for the x402 endpoint.",
"examples": [
{
"outcome": "accepted"
}
],
"type": "object",
"required": [
"outcome"
],
"properties": {
"outcome": {
"description": "The simulated facilitator outcome: `accepted` if the facilitator would index the resource, or `rejected` if it would reject it.",
"examples": [
"accepted"
],
"type": "string",
"enum": [
"accepted",
"rejected"
]
},
"rejectionReason": {
"description": "The reason the resource would be rejected, present only when `outcome` is `rejected`.",
"examples": [
"Resource is missing a supported payment scheme."
],
"type": "string"
}
}
}Fields§
§outcome: X402ValidateSimulationOutcomeThe simulated facilitator outcome: accepted if the facilitator would index the resource, or rejected if it would reject it.
rejection_reason: Option<String>The reason the resource would be rejected, present only when outcome is rejected.
Implementations§
Source§impl X402ValidateSimulation
impl X402ValidateSimulation
pub fn builder() -> X402ValidateSimulation
Trait Implementations§
Source§impl Clone for X402ValidateSimulation
impl Clone for X402ValidateSimulation
Source§impl Debug for X402ValidateSimulation
impl Debug for X402ValidateSimulation
Source§impl<'de> Deserialize<'de> for X402ValidateSimulation
impl<'de> Deserialize<'de> for X402ValidateSimulation
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<&X402ValidateSimulation> for X402ValidateSimulation
impl From<&X402ValidateSimulation> for X402ValidateSimulation
Source§fn from(value: &X402ValidateSimulation) -> Self
fn from(value: &X402ValidateSimulation) -> Self
Converts to this type from the input type.
Source§impl From<X402ValidateSimulation> for X402ValidateSimulation
impl From<X402ValidateSimulation> for X402ValidateSimulation
Source§fn from(value: X402ValidateSimulation) -> Self
fn from(value: X402ValidateSimulation) -> Self
Converts to this type from the input type.
Source§impl Serialize for X402ValidateSimulation
impl Serialize for X402ValidateSimulation
Source§impl TryFrom<X402ValidateSimulation> for X402ValidateSimulation
impl TryFrom<X402ValidateSimulation> for X402ValidateSimulation
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: X402ValidateSimulation) -> Result<Self, ConversionError>
fn try_from(value: X402ValidateSimulation) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for X402ValidateSimulation
impl RefUnwindSafe for X402ValidateSimulation
impl Send for X402ValidateSimulation
impl Sync for X402ValidateSimulation
impl Unpin for X402ValidateSimulation
impl UnsafeUnpin for X402ValidateSimulation
impl UnwindSafe for X402ValidateSimulation
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