pub enum ProcessResult {
NoPaymentRequired,
PaymentVerified {
payload: PaymentPayload,
requirements: PaymentRequirements,
},
PaymentError {
status: u16,
headers: Vec<(String, String)>,
body: Value,
},
}Expand description
Result of processing an HTTP request through the payment gate.
Corresponds to Python SDK’s HTTPProcessResult.
Variants§
NoPaymentRequired
Route does not require payment — pass through to inner service.
PaymentVerified
Payment verified successfully.
Fields
§
payload: PaymentPayloadThe verified payment payload.
§
requirements: PaymentRequirementsThe matching payment requirements.
PaymentError
Payment error — return 402 or error response.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProcessResult
impl RefUnwindSafe for ProcessResult
impl Send for ProcessResult
impl Sync for ProcessResult
impl Unpin for ProcessResult
impl UnwindSafe for ProcessResult
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