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