pub struct CaptureResponse {
pub provider: PaymentProvider,
pub provider_reference: ProviderReference,
pub status: PaymentStatus,
}Expand description
Capture response.
Fields§
§provider: PaymentProviderProvider handling the capture.
provider_reference: ProviderReferenceProvider payment reference.
status: PaymentStatusNormalized status after capture.
Implementations§
Source§impl CaptureResponse
impl CaptureResponse
Sourcepub const fn provider(&self) -> &PaymentProvider
pub const fn provider(&self) -> &PaymentProvider
Returns the provider handling the capture.
Sourcepub const fn provider_reference(&self) -> &ProviderReference
pub const fn provider_reference(&self) -> &ProviderReference
Returns the provider payment reference.
Sourcepub const fn status(&self) -> PaymentStatus
pub const fn status(&self) -> PaymentStatus
Returns the normalized capture status.
Trait Implementations§
Source§impl Clone for CaptureResponse
impl Clone for CaptureResponse
Source§fn clone(&self) -> CaptureResponse
fn clone(&self) -> CaptureResponse
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 moreSource§impl Debug for CaptureResponse
impl Debug for CaptureResponse
Source§impl PartialEq for CaptureResponse
impl PartialEq for CaptureResponse
Source§fn eq(&self, other: &CaptureResponse) -> bool
fn eq(&self, other: &CaptureResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CaptureResponse
impl StructuralPartialEq for CaptureResponse
Auto Trait Implementations§
impl Freeze for CaptureResponse
impl RefUnwindSafe for CaptureResponse
impl Send for CaptureResponse
impl Sync for CaptureResponse
impl Unpin for CaptureResponse
impl UnsafeUnpin for CaptureResponse
impl UnwindSafe for CaptureResponse
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