pub struct ChainConfig {
pub id: u64,
pub name: String,
pub rpc_url: Option<String>,
pub contracts: ChainContract,
pub explorer_url: Option<String>,
pub native_token: Option<String>,
pub is_testnet: bool,
}Expand description
Chain-specific configuration
Fields§
§id: u64Chain ID
name: StringHuman-readable chain name
rpc_url: Option<String>RPC URL (overrides global RPC_URL_{CHAIN_ID} if set)
contracts: ChainContractContract addresses for this chain
explorer_url: Option<String>Block explorer URL
native_token: Option<String>Native token symbol
is_testnet: boolWhether this is a testnet
Trait Implementations§
Source§impl Clone for ChainConfig
impl Clone for ChainConfig
Source§fn clone(&self) -> ChainConfig
fn clone(&self) -> ChainConfig
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 ChainConfig
impl Debug for ChainConfig
Source§impl<'de> Deserialize<'de> for ChainConfig
impl<'de> Deserialize<'de> for ChainConfig
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
Auto Trait Implementations§
impl Freeze for ChainConfig
impl RefUnwindSafe for ChainConfig
impl Send for ChainConfig
impl Sync for ChainConfig
impl Unpin for ChainConfig
impl UnwindSafe for ChainConfig
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