#[non_exhaustive]pub struct CreatedPayment {
pub signed_payload: String,
pub payment_required: PaymentRequired,
}Expand description
Result of successful payment creation (transport-agnostic).
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.signed_payload: StringBase64-encoded payment payload for Payment-Signature / MCP meta.
payment_required: PaymentRequiredChallenge that was paid.
Implementations§
Source§impl CreatedPayment
impl CreatedPayment
Sourcepub fn new(
signed_payload: impl Into<String>,
payment_required: PaymentRequired,
) -> Self
pub fn new( signed_payload: impl Into<String>, payment_required: PaymentRequired, ) -> Self
Constructs a created-payment record.
Trait Implementations§
Source§impl Clone for CreatedPayment
impl Clone for CreatedPayment
Source§fn clone(&self) -> CreatedPayment
fn clone(&self) -> CreatedPayment
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 CreatedPayment
impl RefUnwindSafe for CreatedPayment
impl Send for CreatedPayment
impl Sync for CreatedPayment
impl Unpin for CreatedPayment
impl UnsafeUnpin for CreatedPayment
impl UnwindSafe for CreatedPayment
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