pub enum ValidatorStakeView {
V1(ValidatorStakeViewV1),
}Expand description
Validator stake (versioned).
Used for validator proposals in block/chunk headers.
Variants§
V1(ValidatorStakeViewV1)
Version 1 (current).
Implementations§
Source§impl ValidatorStakeView
impl ValidatorStakeView
Sourcepub fn into_v1(self) -> ValidatorStakeViewV1
pub fn into_v1(self) -> ValidatorStakeViewV1
Get the inner V1 data.
Sourcepub fn account_id(&self) -> &AccountId
pub fn account_id(&self) -> &AccountId
Get the account ID.
Trait Implementations§
Source§impl Clone for ValidatorStakeView
impl Clone for ValidatorStakeView
Source§fn clone(&self) -> ValidatorStakeView
fn clone(&self) -> ValidatorStakeView
Returns a duplicate 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 ValidatorStakeView
impl Debug for ValidatorStakeView
Source§impl<'de> Deserialize<'de> for ValidatorStakeView
impl<'de> Deserialize<'de> for ValidatorStakeView
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 Freeze for ValidatorStakeView
impl RefUnwindSafe for ValidatorStakeView
impl Send for ValidatorStakeView
impl Sync for ValidatorStakeView
impl Unpin for ValidatorStakeView
impl UnsafeUnpin for ValidatorStakeView
impl UnwindSafe for ValidatorStakeView
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