pub struct ExternalDetails {
pub type_: ExternalDetailsType,
pub source: String,
pub id: Option<String>,
pub source_fee_money: Option<Money>,
}
Expand description
Stores details about an external payment.
Fields§
§type_: ExternalDetailsType
The type of external payment the seller received.
source: String
A description of the external payment source. For example, “Food Delivery Service”.
id: Option<String>
An ID to associate this payment to its originating source.
source_fee_money: Option<Money>
The fees paid to the source. The amount_money minus this field is the net amount sellers receive.
Trait Implementations§
Source§impl Clone for ExternalDetails
impl Clone for ExternalDetails
Source§fn clone(&self) -> ExternalDetails
fn clone(&self) -> ExternalDetails
Returns a duplicate of the value. Read more
1.0.0 · 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 ExternalDetails
impl Debug for ExternalDetails
Source§impl<'de> Deserialize<'de> for ExternalDetails
impl<'de> Deserialize<'de> for ExternalDetails
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExternalDetails
impl RefUnwindSafe for ExternalDetails
impl Send for ExternalDetails
impl Sync for ExternalDetails
impl Unpin for ExternalDetails
impl UnwindSafe for ExternalDetails
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