pub struct CryptoRailAddress {
pub address: String,
pub currency: String,
pub network: String,
}
Expand description
The crypto rail input object which specifies the symbol, network, and address which is the source or destination wallet address.
JSON schema
{
"title": "CryptoRailAddress",
"description": "The crypto rail input object which specifies the symbol, network, and address which is the source or destination wallet address.",
"type": "object",
"required": [
"address",
"currency",
"network"
],
"properties": {
"address": {
"description": "The address of the payment rail. This is the source or destination wallet address. It is not a contract address.",
"examples": [
"0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
],
"type": "string"
},
"currency": {
"description": "The symbol of the currency of the payment rail.",
"examples": [
"USDC"
],
"type": "string"
},
"network": {
"description": "The network of the payment rail.",
"examples": [
"base"
],
"type": "string"
}
}
}
Fields§
§address: String
The address of the payment rail. This is the source or destination wallet address. It is not a contract address.
currency: String
The symbol of the currency of the payment rail.
network: String
The network of the payment rail.
Implementations§
Source§impl CryptoRailAddress
impl CryptoRailAddress
pub fn builder() -> CryptoRailAddress
Trait Implementations§
Source§impl Clone for CryptoRailAddress
impl Clone for CryptoRailAddress
Source§fn clone(&self) -> CryptoRailAddress
fn clone(&self) -> CryptoRailAddress
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 CryptoRailAddress
impl Debug for CryptoRailAddress
Source§impl<'de> Deserialize<'de> for CryptoRailAddress
impl<'de> Deserialize<'de> for CryptoRailAddress
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<&CryptoRailAddress> for CryptoRailAddress
impl From<&CryptoRailAddress> for CryptoRailAddress
Source§fn from(value: &CryptoRailAddress) -> Self
fn from(value: &CryptoRailAddress) -> Self
Converts to this type from the input type.
Source§impl From<CryptoRailAddress> for CryptoRailAddress
impl From<CryptoRailAddress> for CryptoRailAddress
Source§fn from(value: CryptoRailAddress) -> Self
fn from(value: CryptoRailAddress) -> Self
Converts to this type from the input type.
Source§impl From<CryptoRailAddress> for TransferTarget
impl From<CryptoRailAddress> for TransferTarget
Source§fn from(value: CryptoRailAddress) -> Self
fn from(value: CryptoRailAddress) -> Self
Converts to this type from the input type.
Source§impl From<TransferTarget> for CryptoRailAddress
impl From<TransferTarget> for CryptoRailAddress
Source§fn from(value: TransferTarget) -> Self
fn from(value: TransferTarget) -> Self
Converts to this type from the input type.
Source§impl Serialize for CryptoRailAddress
impl Serialize for CryptoRailAddress
Source§impl TryFrom<CryptoRailAddress> for CryptoRailAddress
impl TryFrom<CryptoRailAddress> for CryptoRailAddress
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CryptoRailAddress) -> Result<Self, ConversionError>
fn try_from(value: CryptoRailAddress) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CryptoRailAddress
impl RefUnwindSafe for CryptoRailAddress
impl Send for CryptoRailAddress
impl Sync for CryptoRailAddress
impl Unpin for CryptoRailAddress
impl UnwindSafe for CryptoRailAddress
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