neo3 1.1.1

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
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, PartialEq, Eq, Hash, Debug, Clone)]
pub struct PopulatedBlocks {
	pub cache_id: String,
	pub blocks: Vec<i32>,
}

impl PopulatedBlocks {
	pub fn new(cache_id: String, blocks: Vec<i32>) -> Self {
		Self { cache_id, blocks }
	}
}