#[non_exhaustive]pub struct CompletedSettlement {
pub phase: SettlePhase,
pub flow: PaymentFlowName,
pub result: SettleResponse,
pub requirements: PaymentRequirements,
}Expand description
Successful settle captured for a later phase (echo / cancel).
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.phase: SettlePhaseSettle invocation that produced result.
flow: PaymentFlowNamePayment flow in effect when this settle ran.
result: SettleResponseFacilitator settle response.
requirements: PaymentRequirementsRequirements used for this settle.
Implementations§
Source§impl CompletedSettlement
impl CompletedSettlement
Sourcepub const fn new(
phase: SettlePhase,
flow: PaymentFlowName,
result: SettleResponse,
requirements: PaymentRequirements,
) -> Self
pub const fn new( phase: SettlePhase, flow: PaymentFlowName, result: SettleResponse, requirements: PaymentRequirements, ) -> Self
Constructs a completed-settlement record.
Trait Implementations§
Source§impl Clone for CompletedSettlement
impl Clone for CompletedSettlement
Source§fn clone(&self) -> CompletedSettlement
fn clone(&self) -> CompletedSettlement
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 CompletedSettlement
impl RefUnwindSafe for CompletedSettlement
impl Send for CompletedSettlement
impl Sync for CompletedSettlement
impl Unpin for CompletedSettlement
impl UnsafeUnpin for CompletedSettlement
impl UnwindSafe for CompletedSettlement
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