pub struct CryptoRail {
pub actions: Vec<PaymentRailAction>,
pub currency: String,
pub name: String,
pub networks: Vec<CryptoRailNetworksItem>,
}
Expand description
The crypto rails available.
JSON schema
{
"description": "The crypto rails available.",
"examples": [
{
"actions": [
"source",
"target"
],
"currency": "USDC",
"name": "USD Coin",
"networks": [
{
"chainId": 8453,
"contractAddress": "0xd9aa0e1babc7397f2c6cb2f9b6edb6f6953b4d62",
"name": "base"
}
]
}
],
"type": "object",
"required": [
"actions",
"currency",
"name",
"networks"
],
"properties": {
"actions": {
"description": "The actions for the crypto rail.",
"examples": [
[
"source",
"target"
]
],
"type": "array",
"items": {
"$ref": "#/components/schemas/PaymentRailAction"
}
},
"currency": {
"description": "The currency symbol of the asset.",
"examples": [
"USDC"
],
"type": "string"
},
"name": {
"description": "The name of the asset.",
"examples": [
"USD Coin"
],
"type": "string"
},
"networks": {
"description": "All available networks of the asset.",
"examples": [
[
{
"chainId": 8453,
"contractAddress": "0xd9aa0e1babc7397f2c6cb2f9b6edb6f6953b4d62",
"name": "base"
}
]
],
"type": "array",
"items": {
"description": "The networks of the asset.",
"type": "object",
"properties": {
"chainId": {
"description": "The chain ID of the network.",
"examples": [
8453
],
"type": "integer",
"format": "int64"
},
"contractAddress": {
"description": "The contract address of the asset on the network.",
"examples": [
"0xd9aa0e1babc7397f2c6cb2f9b6edb6f6953b4d62"
],
"type": "string"
},
"name": {
"description": "The name of the network.",
"examples": [
"base"
],
"type": "string"
}
}
}
}
}
}
Fields§
§actions: Vec<PaymentRailAction>
The actions for the crypto rail.
currency: String
The currency symbol of the asset.
name: String
The name of the asset.
networks: Vec<CryptoRailNetworksItem>
All available networks of the asset.
Implementations§
Source§impl CryptoRail
impl CryptoRail
pub fn builder() -> CryptoRail
Trait Implementations§
Source§impl Clone for CryptoRail
impl Clone for CryptoRail
Source§fn clone(&self) -> CryptoRail
fn clone(&self) -> CryptoRail
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 CryptoRail
impl Debug for CryptoRail
Source§impl<'de> Deserialize<'de> for CryptoRail
impl<'de> Deserialize<'de> for CryptoRail
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<&CryptoRail> for CryptoRail
impl From<&CryptoRail> for CryptoRail
Source§fn from(value: &CryptoRail) -> Self
fn from(value: &CryptoRail) -> Self
Converts to this type from the input type.
Source§impl From<CryptoRail> for CryptoRail
impl From<CryptoRail> for CryptoRail
Source§fn from(value: CryptoRail) -> Self
fn from(value: CryptoRail) -> Self
Converts to this type from the input type.
Source§impl Serialize for CryptoRail
impl Serialize for CryptoRail
Source§impl TryFrom<CryptoRail> for CryptoRail
impl TryFrom<CryptoRail> for CryptoRail
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CryptoRail) -> Result<Self, ConversionError>
fn try_from(value: CryptoRail) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CryptoRail
impl RefUnwindSafe for CryptoRail
impl Send for CryptoRail
impl Sync for CryptoRail
impl Unpin for CryptoRail
impl UnwindSafe for CryptoRail
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