pub struct PaymentSourceWallet {
pub address: BlockchainAddress,
pub asset: Option<Asset>,
pub network: Option<PaymentSourceNetwork>,
}Expand description
A blockchain wallet address used as a payment source.
JSON schema
{
"title": "Payment Source Wallet",
"description": "A blockchain wallet address used as a payment source.",
"examples": [
{
"address": "0xAbC1234567890aBcDeF1234567890AbCdEf123456",
"asset": "usdc",
"network": "base"
}
],
"type": "object",
"required": [
"address"
],
"properties": {
"address": {
"description": "The blockchain address of the payer.",
"examples": [
"0xAbC1234567890aBcDeF1234567890AbCdEf123456"
],
"allOf": [
{
"$ref": "#/components/schemas/BlockchainAddress"
}
]
},
"asset": {
"description": "The asset used for the payment.",
"examples": [
"usdc"
],
"allOf": [
{
"$ref": "#/components/schemas/Asset"
}
]
},
"network": {
"description": "The blockchain network for the payment.",
"examples": [
"base"
],
"allOf": [
{
"$ref": "#/components/schemas/PaymentSourceNetwork"
}
]
}
}
}Fields§
§address: BlockchainAddressThe blockchain address of the payer.
asset: Option<Asset>The asset used for the payment.
network: Option<PaymentSourceNetwork>The blockchain network for the payment.
Implementations§
Source§impl PaymentSourceWallet
impl PaymentSourceWallet
pub fn builder() -> PaymentSourceWallet
Trait Implementations§
Source§impl Clone for PaymentSourceWallet
impl Clone for PaymentSourceWallet
Source§impl Debug for PaymentSourceWallet
impl Debug for PaymentSourceWallet
Source§impl<'de> Deserialize<'de> for PaymentSourceWallet
impl<'de> Deserialize<'de> for PaymentSourceWallet
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
Source§impl From<&PaymentSourceWallet> for PaymentSourceWallet
impl From<&PaymentSourceWallet> for PaymentSourceWallet
Source§fn from(value: &PaymentSourceWallet) -> Self
fn from(value: &PaymentSourceWallet) -> Self
Converts to this type from the input type.
Source§impl From<MandateSourceWallet> for PaymentSourceWallet
impl From<MandateSourceWallet> for PaymentSourceWallet
Source§fn from(value: MandateSourceWallet) -> Self
fn from(value: MandateSourceWallet) -> Self
Converts to this type from the input type.
Source§impl From<PaymentSourceWallet> for MandateSourceWallet
impl From<PaymentSourceWallet> for MandateSourceWallet
Source§fn from(value: PaymentSourceWallet) -> Self
fn from(value: PaymentSourceWallet) -> Self
Converts to this type from the input type.
Source§impl From<PaymentSourceWallet> for PaymentSessionSource
impl From<PaymentSourceWallet> for PaymentSessionSource
Source§fn from(value: PaymentSourceWallet) -> Self
fn from(value: PaymentSourceWallet) -> Self
Converts to this type from the input type.
Source§impl From<PaymentSourceWallet> for PaymentSourceWallet
impl From<PaymentSourceWallet> for PaymentSourceWallet
Source§fn from(value: PaymentSourceWallet) -> Self
fn from(value: PaymentSourceWallet) -> Self
Converts to this type from the input type.
Source§impl Serialize for PaymentSourceWallet
impl Serialize for PaymentSourceWallet
Source§impl TryFrom<PaymentSourceWallet> for PaymentSourceWallet
impl TryFrom<PaymentSourceWallet> for PaymentSourceWallet
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PaymentSourceWallet) -> Result<Self, ConversionError>
fn try_from(value: PaymentSourceWallet) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PaymentSourceWallet
impl RefUnwindSafe for PaymentSourceWallet
impl Send for PaymentSourceWallet
impl Sync for PaymentSourceWallet
impl Unpin for PaymentSourceWallet
impl UnsafeUnpin for PaymentSourceWallet
impl UnwindSafe for PaymentSourceWallet
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