neo3/neo_protocol/responses/neo_get_next_block_validators.rs
1use serde::{Deserialize, Serialize};
2
3#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, Hash, Debug)]
4pub struct Validator {
5 #[serde(rename = "publickey")]
6 pub public_key: String,
7 pub votes: String,
8 pub active: bool,
9}
10
11impl Validator {
12 pub fn new(public_key: String, votes: String, active: bool) -> Self {
13 Self { public_key, votes, active }
14 }
15}