Struct tendermint::genesis::Genesis
source · [−]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: Vec<u8>,
pub app_state: AppState,
}Expand description
Genesis data
Fields
genesis_time: TimeTime of genesis
chain_id: IdChain ID
initial_height: i64Starting height of the blockchain
consensus_params: ParamsConsensus parameters
validators: Vec<Info>Validators
app_hash: Vec<u8>App hash
app_state: AppStateApp state
Trait Implementations
sourceimpl<'de, AppState> Deserialize<'de> for Genesis<AppState> where
AppState: Deserialize<'de>,
impl<'de, AppState> Deserialize<'de> for Genesis<AppState> where
AppState: Deserialize<'de>,
sourcefn 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> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
