pub struct ChainId {
pub slug: String,
pub evm_chain_id: Option<u64>,
pub family: ChainFamily,
}Expand description
A fully qualified chain identifier, e.g. ethereum, arbitrum, solana-mainnet.
Used as the primary key when selecting a decoder and querying schemas.
Fields§
§slug: StringHuman-readable slug, e.g. “ethereum”, “arbitrum-one”, “solana-mainnet”
evm_chain_id: Option<u64>EVM chain ID integer, if applicable (e.g. 1 for Ethereum mainnet)
family: ChainFamilyThe VM family this chain belongs to
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChainId
impl<'de> Deserialize<'de> for ChainId
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
impl Eq for ChainId
impl StructuralPartialEq for ChainId
Auto Trait Implementations§
impl Freeze for ChainId
impl RefUnwindSafe for ChainId
impl Send for ChainId
impl Sync for ChainId
impl Unpin for ChainId
impl UnsafeUnpin for ChainId
impl UnwindSafe for ChainId
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