pub struct BlockchainDto {
pub chain_id: i64,
pub explorer_url: String,
pub name: String,
pub symbol: String,
}Expand description
BlockchainDto
JSON schema
{
"type": "object",
"required": [
"chainId",
"explorerUrl",
"name",
"symbol"
],
"properties": {
"chainId": {
"description": "DTO.BLOCKCHAIN.CHAIN_ID",
"examples": [
1
],
"type": "integer",
"format": "int64"
},
"explorerUrl": {
"description": "DTO.BLOCKCHAIN.EXPLORER_URL",
"examples": [
"https://explorer.solana.com"
],
"type": "string"
},
"name": {
"description": "DTO.BLOCKCHAIN.NAME",
"examples": [
"Solana"
],
"type": "string"
},
"symbol": {
"description": "DTO.BLOCKCHAIN.SYMBOL",
"examples": [
"SOL"
],
"type": "string"
}
}
}Fields§
§chain_id: i64DTO.BLOCKCHAIN.CHAIN_ID
explorer_url: StringDTO.BLOCKCHAIN.EXPLORER_URL
name: StringDTO.BLOCKCHAIN.NAME
symbol: StringDTO.BLOCKCHAIN.SYMBOL
Implementations§
Source§impl BlockchainDto
impl BlockchainDto
pub fn builder() -> BlockchainDto
Trait Implementations§
Source§impl Clone for BlockchainDto
impl Clone for BlockchainDto
Source§fn clone(&self) -> BlockchainDto
fn clone(&self) -> BlockchainDto
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 BlockchainDto
impl Debug for BlockchainDto
Source§impl<'de> Deserialize<'de> for BlockchainDto
impl<'de> Deserialize<'de> for BlockchainDto
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<&BlockchainDto> for BlockchainDto
impl From<&BlockchainDto> for BlockchainDto
Source§fn from(value: &BlockchainDto) -> Self
fn from(value: &BlockchainDto) -> Self
Converts to this type from the input type.
Source§impl From<BlockchainDto> for BlockchainDto
impl From<BlockchainDto> for BlockchainDto
Source§fn from(value: BlockchainDto) -> Self
fn from(value: BlockchainDto) -> Self
Converts to this type from the input type.
Source§impl Serialize for BlockchainDto
impl Serialize for BlockchainDto
Source§impl TryFrom<BlockchainDto> for BlockchainDto
impl TryFrom<BlockchainDto> for BlockchainDto
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: BlockchainDto) -> Result<Self, ConversionError>
fn try_from(value: BlockchainDto) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for BlockchainDto
impl RefUnwindSafe for BlockchainDto
impl Send for BlockchainDto
impl Sync for BlockchainDto
impl Unpin for BlockchainDto
impl UnwindSafe for BlockchainDto
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