pub struct ExecutePaymentCommand {
pub context: CommerceContext,
pub amount: Money,
pub selected_payment_method: Option<PaymentMethodSelection>,
pub supporting_evidence_refs: Vec<EvidenceReference>,
pub extensions: ProtocolExtensions,
}Available on crate feature
payments only.Expand description
Canonical payment-execution request shared by ACP and AP2 adapters.
Fields§
§context: CommerceContext§amount: Money§selected_payment_method: Option<PaymentMethodSelection>§supporting_evidence_refs: Vec<EvidenceReference>§extensions: ProtocolExtensionsTrait Implementations§
Source§impl Clone for ExecutePaymentCommand
impl Clone for ExecutePaymentCommand
Source§fn clone(&self) -> ExecutePaymentCommand
fn clone(&self) -> ExecutePaymentCommand
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 ExecutePaymentCommand
impl Debug for ExecutePaymentCommand
Source§impl<'de> Deserialize<'de> for ExecutePaymentCommand
impl<'de> Deserialize<'de> for ExecutePaymentCommand
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExecutePaymentCommand, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExecutePaymentCommand, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ExecutePaymentCommand
impl PartialEq for ExecutePaymentCommand
Source§fn eq(&self, other: &ExecutePaymentCommand) -> bool
fn eq(&self, other: &ExecutePaymentCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ExecutePaymentCommand
impl Serialize for ExecutePaymentCommand
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ExecutePaymentCommand
Auto Trait Implementations§
impl Freeze for ExecutePaymentCommand
impl RefUnwindSafe for ExecutePaymentCommand
impl Send for ExecutePaymentCommand
impl Sync for ExecutePaymentCommand
impl Unpin for ExecutePaymentCommand
impl UnsafeUnpin for ExecutePaymentCommand
impl UnwindSafe for ExecutePaymentCommand
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