pub struct PaymentRequiredBuildContext {
pub resource: ResourceInfo,
pub error: Option<CompactString>,
pub extensions: Extensions,
pub supported: SupportedResponse,
pub payment_payload: Option<WirePaymentPayload>,
}Expand description
Inputs for ResourceServer::create_payment_required_response.
Fields§
§resource: ResourceInfoResource metadata placed on the 402 body.
error: Option<CompactString>Optional error string (PaymentRequired.error).
extensions: ExtensionsDeclared extension entries copied onto the 402 body before advertise.
supported: SupportedResponseFacilitator /supported snapshot (scheme enrich reads this later).
payment_payload: Option<WirePaymentPayload>Failed payment payload, when building a 402 after a paid attempt.
Trait Implementations§
Source§impl Clone for PaymentRequiredBuildContext
impl Clone for PaymentRequiredBuildContext
Source§fn clone(&self) -> PaymentRequiredBuildContext
fn clone(&self) -> PaymentRequiredBuildContext
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 PaymentRequiredBuildContext
impl RefUnwindSafe for PaymentRequiredBuildContext
impl Send for PaymentRequiredBuildContext
impl Sync for PaymentRequiredBuildContext
impl Unpin for PaymentRequiredBuildContext
impl UnsafeUnpin for PaymentRequiredBuildContext
impl UnwindSafe for PaymentRequiredBuildContext
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