pub struct ChainNetwork {
pub slug: String,
pub name: String,
pub chain_id: Option<i64>,
}Expand description
A network within a supported chain.
Fields§
§slug: StringNetwork slug (e.g. mainnet).
name: StringHuman-readable network name.
chain_id: Option<i64>Numeric chain id, when applicable.
Trait Implementations§
Source§impl Clone for ChainNetwork
impl Clone for ChainNetwork
Source§fn clone(&self) -> ChainNetwork
fn clone(&self) -> ChainNetwork
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ChainNetwork
impl Debug for ChainNetwork
Source§impl<'de> Deserialize<'de> for ChainNetwork
impl<'de> Deserialize<'de> for ChainNetwork
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 ChainNetwork
impl RefUnwindSafe for ChainNetwork
impl Send for ChainNetwork
impl Sync for ChainNetwork
impl Unpin for ChainNetwork
impl UnsafeUnpin for ChainNetwork
impl UnwindSafe for ChainNetwork
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