neo3 1.0.8

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

// #[derive(Serialize, Deserialize, Debug, Clone, Hash)]
// pub struct SubmitBlock {
// 	#[serde(serialize_with = "serialize_h256")]
// 	#[serde(deserialize_with = "deserialize_h256")]
// 	pub hash: H256,
// }

#[derive(Serialize, Deserialize, Debug, Clone, Hash)]
pub struct SubmitBlock(bool);
impl SubmitBlock {
	pub fn get_submit_block(&self) -> bool {
		self.0
	}
}