pub struct CryptoRailNetworksItem {
pub chain_id: Option<i64>,
pub contract_address: Option<String>,
pub name: Option<String>,
}
Expand description
The networks of the asset.
JSON schema
{
"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§
§chain_id: Option<i64>
The chain ID of the network.
contract_address: Option<String>
The contract address of the asset on the network.
name: Option<String>
The name of the network.
Implementations§
Source§impl CryptoRailNetworksItem
impl CryptoRailNetworksItem
pub fn builder() -> CryptoRailNetworksItem
Trait Implementations§
Source§impl Clone for CryptoRailNetworksItem
impl Clone for CryptoRailNetworksItem
Source§fn clone(&self) -> CryptoRailNetworksItem
fn clone(&self) -> CryptoRailNetworksItem
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 CryptoRailNetworksItem
impl Debug for CryptoRailNetworksItem
Source§impl Default for CryptoRailNetworksItem
impl Default for CryptoRailNetworksItem
Source§impl<'de> Deserialize<'de> for CryptoRailNetworksItem
impl<'de> Deserialize<'de> for CryptoRailNetworksItem
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<&CryptoRailNetworksItem> for CryptoRailNetworksItem
impl From<&CryptoRailNetworksItem> for CryptoRailNetworksItem
Source§fn from(value: &CryptoRailNetworksItem) -> Self
fn from(value: &CryptoRailNetworksItem) -> Self
Converts to this type from the input type.
Source§impl From<CryptoRailNetworksItem> for CryptoRailNetworksItem
impl From<CryptoRailNetworksItem> for CryptoRailNetworksItem
Source§fn from(value: CryptoRailNetworksItem) -> Self
fn from(value: CryptoRailNetworksItem) -> Self
Converts to this type from the input type.
Source§impl Serialize for CryptoRailNetworksItem
impl Serialize for CryptoRailNetworksItem
Source§impl TryFrom<CryptoRailNetworksItem> for CryptoRailNetworksItem
impl TryFrom<CryptoRailNetworksItem> for CryptoRailNetworksItem
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CryptoRailNetworksItem) -> Result<Self, ConversionError>
fn try_from(value: CryptoRailNetworksItem) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CryptoRailNetworksItem
impl RefUnwindSafe for CryptoRailNetworksItem
impl Send for CryptoRailNetworksItem
impl Sync for CryptoRailNetworksItem
impl Unpin for CryptoRailNetworksItem
impl UnwindSafe for CryptoRailNetworksItem
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