#[non_exhaustive]pub struct PaymentHookContext {
pub payload: WirePaymentPayload,
pub requirements: PaymentRequirements,
}Expand description
Shared context for resource-server payment hooks.
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: WirePaymentPayloadClient payment payload.
requirements: PaymentRequirementsMatched payment requirements.
Implementations§
Source§impl PaymentHookContext
impl PaymentHookContext
Sourcepub const fn new(
payload: WirePaymentPayload,
requirements: PaymentRequirements,
) -> Self
pub const fn new( payload: WirePaymentPayload, requirements: PaymentRequirements, ) -> Self
Constructs a payment hook context.
Trait Implementations§
Source§impl Clone for PaymentHookContext
impl Clone for PaymentHookContext
Source§fn clone(&self) -> PaymentHookContext
fn clone(&self) -> PaymentHookContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PaymentHookContext
impl RefUnwindSafe for PaymentHookContext
impl Send for PaymentHookContext
impl Sync for PaymentHookContext
impl Unpin for PaymentHookContext
impl UnsafeUnpin for PaymentHookContext
impl UnwindSafe for PaymentHookContext
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