#[non_exhaustive]pub struct VerifyContext<'a> {
pub payload: &'a PaymentPayload<Value, Value>,
pub requirements: &'a PaymentRequirements,
pub response: &'a VerifyResponse,
}Expand description
Context passed to Extension::on_verify.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.payload: &'a PaymentPayload<Value, Value>The fully-decoded payment payload (as generic JSON, since per-scheme
types are unknown at this level). Use serde_json::from_value if the
extension needs scheme-specific fields.
requirements: &'a PaymentRequirementsThe matched requirements.
response: &'a VerifyResponseThe in-flight verify response (mutable so extensions may observe the preliminary outcome before returning their own payload).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for VerifyContext<'a>
impl<'a> RefUnwindSafe for VerifyContext<'a>
impl<'a> Send for VerifyContext<'a>
impl<'a> Sync for VerifyContext<'a>
impl<'a> Unpin for VerifyContext<'a>
impl<'a> UnsafeUnpin for VerifyContext<'a>
impl<'a> UnwindSafe for VerifyContext<'a>
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