Struct jormungandr_lib::interfaces::Block0Configuration
source · pub struct Block0Configuration {
pub blockchain_configuration: BlockchainConfiguration,
pub initial: Vec<Initial>,
}
Fields§
§blockchain_configuration: BlockchainConfiguration
the initial configuration of the blockchain
- the start date of the block 0;
- the discrimination;
- …
All that is static and does not need to have any update mechanism.
initial: Vec<Initial>
the initial fragments of the blockchain:
- initial funds
- initial certificates (delegation, stake pool…)
Implementations§
source§impl Block0Configuration
impl Block0Configuration
pub fn from_block(block: &Block) -> Result<Self, Block0ConfigurationError>
pub fn to_block(&self) -> Block
Trait Implementations§
source§impl Clone for Block0Configuration
impl Clone for Block0Configuration
source§fn clone(&self) -> Block0Configuration
fn clone(&self) -> Block0Configuration
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 Block0Configuration
impl Debug for Block0Configuration
source§impl<'de> Deserialize<'de> for Block0Configuration
impl<'de> Deserialize<'de> for Block0Configuration
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 PartialEq<Block0Configuration> for Block0Configuration
impl PartialEq<Block0Configuration> for Block0Configuration
source§fn eq(&self, other: &Block0Configuration) -> bool
fn eq(&self, other: &Block0Configuration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Block0Configuration
impl Serialize for Block0Configuration
impl StructuralPartialEq for Block0Configuration
Auto Trait Implementations§
impl RefUnwindSafe for Block0Configuration
impl Send for Block0Configuration
impl Sync for Block0Configuration
impl Unpin for Block0Configuration
impl UnwindSafe for Block0Configuration
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