Struct superchain_primitives::Superchain
source · pub struct Superchain {
pub config: SuperchainConfig,
pub chain_ids: Vec<u64>,
pub superchain: String,
}Expand description
A superchain configuration.
Fields§
§config: SuperchainConfigSuperchain configuration file contents.
chain_ids: Vec<u64>Chain IDs of chains that are part of this superchain.
superchain: StringSuperchain identifier, without capitalization or display changes.
Trait Implementations§
source§impl Clone for Superchain
impl Clone for Superchain
source§fn clone(&self) -> Superchain
fn clone(&self) -> Superchain
Returns a copy 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 Superchain
impl Debug for Superchain
source§impl Default for Superchain
impl Default for Superchain
source§fn default() -> Superchain
fn default() -> Superchain
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Superchain
impl<'de> Deserialize<'de> for Superchain
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 Hash for Superchain
impl Hash for Superchain
source§impl PartialEq for Superchain
impl PartialEq for Superchain
source§fn eq(&self, other: &Superchain) -> bool
fn eq(&self, other: &Superchain) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for Superchain
impl Serialize for Superchain
impl Eq for Superchain
impl StructuralPartialEq for Superchain
Auto Trait Implementations§
impl Freeze for Superchain
impl RefUnwindSafe for Superchain
impl Send for Superchain
impl Sync for Superchain
impl Unpin for Superchain
impl UnwindSafe for Superchain
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)