pub struct Info {
pub address: Id,
pub pub_key: PublicKey,
pub power: Power,
pub name: Option<String>,
pub proposer_priority: ProposerPriority,
}
Expand description
Validator information
Fields§
§address: Id
Validator account address
pub_key: PublicKey
Validator public key
power: Power
Validator voting power
name: Option<String>
Validator name
proposer_priority: ProposerPriority
Validator proposer priority
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Info
impl<'de> Deserialize<'de> for Info
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 From<&Info> for SimpleValidator
impl From<&Info> for SimpleValidator
Info -> SimpleValidator
Source§fn from(info: &Info) -> SimpleValidator
fn from(info: &Info) -> SimpleValidator
Converts to this type from the input type.
impl Eq for Info
impl StructuralPartialEq for Info
Auto Trait Implementations§
impl Freeze for Info
impl RefUnwindSafe for Info
impl Send for Info
impl Sync for Info
impl Unpin for Info
impl UnwindSafe for Info
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