pub struct ChainInfo {
pub protocol_magic: Magic,
pub network_id: u8,
pub bech32_hrp_address: &'static str,
}Expand description
Chain info hold all the specifics value for a given chain (MAINNET/TESTNET/…)
Fields§
§protocol_magic: Magic§network_id: u8§bech32_hrp_address: &'static strImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChainInfo
impl RefUnwindSafe for ChainInfo
impl Send for ChainInfo
impl Sync for ChainInfo
impl Unpin for ChainInfo
impl UnwindSafe for ChainInfo
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