neo3 1.0.9

Production-ready Rust SDK for Neo N3 blockchain with high-level API, unified error handling, and enterprise features
Documentation
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, Hash, Debug)]
pub struct Peers {
	pub connected: Vec<AddressEntry>,
	pub bad: Vec<AddressEntry>,
	pub unconnected: Vec<AddressEntry>,
}

#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, Hash, Debug)]
pub struct AddressEntry {
	pub address: String,
	pub port: u16,
}

impl AddressEntry {
	pub fn new(address: String, port: u16) -> Self {
		Self { address, port }
	}
}