neo3 1.0.9

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 primitive_types::H256;

use neo3::prelude::{deserialize_h256, serialize_h256};

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

impl RawTransaction {
	pub fn new(hash: H256) -> Self {
		Self { hash }
	}
}