pub struct PayResult {
pub protocol: Protocol,
pub status: u16,
pub body: String,
pub payment: Option<PaymentInfo>,
}Expand description
Result of a pay() call.
Fields§
§protocol: ProtocolWhich protocol handled the payment.
status: u16HTTP status of the final response.
body: StringResponse body.
payment: Option<PaymentInfo>Payment details. None if no payment was required (non-402).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PayResult
impl RefUnwindSafe for PayResult
impl Send for PayResult
impl Sync for PayResult
impl Unpin for PayResult
impl UnsafeUnpin for PayResult
impl UnwindSafe for PayResult
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