pub struct Genesis<AppState = Value> {
pub genesis_time: Time,
pub chain_id: Id,
pub initial_height: i64,
pub consensus_params: Params,
pub validators: Vec<Info>,
pub app_hash: AppHash,
pub app_state: AppState,
}
Expand description
Genesis data
Fields§
§genesis_time: Time
Time of genesis
chain_id: Id
Chain ID
initial_height: i64
Starting height of the blockchain
consensus_params: Params
Consensus parameters
validators: Vec<Info>
Validators
app_hash: AppHash
App hash
app_state: AppState
App state
Trait Implementations§
Source§impl<'de, AppState> Deserialize<'de> for Genesis<AppState>where
AppState: Deserialize<'de>,
impl<'de, AppState> Deserialize<'de> for Genesis<AppState>where
AppState: Deserialize<'de>,
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<AppState> Freeze for Genesis<AppState>where
AppState: Freeze,
impl<AppState> RefUnwindSafe for Genesis<AppState>where
AppState: RefUnwindSafe,
impl<AppState> Send for Genesis<AppState>where
AppState: Send,
impl<AppState> Sync for Genesis<AppState>where
AppState: Sync,
impl<AppState> Unpin for Genesis<AppState>where
AppState: Unpin,
impl<AppState> UnwindSafe for Genesis<AppState>where
AppState: UnwindSafe,
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