neo3 1.3.0

Production-ready Rust SDK for Neo N3 blockchain with high-level API, unified error handling, and enterprise features
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, Hash, Debug)]
pub struct Validator {
	#[serde(rename = "publickey")]
	pub public_key: String,
	pub votes: String,
	pub active: bool,
}

impl Validator {
	pub fn new(public_key: String, votes: String, active: bool) -> Self {
		Self { public_key, votes, active }
	}
}