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