pub struct EndBlock<Ev> {
pub validator_updates: Vec<Update>,
pub consensus_param_updates: Option<Params>,
pub events: Vec<Ev>,
}Fields§
§validator_updates: Vec<Update>Changes to the validator set, if any.
Setting the voting power to 0 removes a validator.
consensus_param_updates: Option<Params>Changes to consensus parameters (optional).
events: Vec<Ev>Events that occurred while ending the block.
Trait Implementations§
Source§impl<'de, Ev> Deserialize<'de> for EndBlock<Ev>where
Ev: Deserialize<'de>,
impl<'de, Ev> Deserialize<'de> for EndBlock<Ev>where
Ev: 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
impl<Ev: Eq> Eq for EndBlock<Ev>
impl<Ev> StructuralPartialEq for EndBlock<Ev>
Auto Trait Implementations§
impl<Ev> Freeze for EndBlock<Ev>
impl<Ev> RefUnwindSafe for EndBlock<Ev>where
Ev: RefUnwindSafe,
impl<Ev> Send for EndBlock<Ev>where
Ev: Send,
impl<Ev> Sync for EndBlock<Ev>where
Ev: Sync,
impl<Ev> Unpin for EndBlock<Ev>where
Ev: Unpin,
impl<Ev> UnwindSafe for EndBlock<Ev>where
Ev: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.