Skip to main content

aptos_client_icp/models/
block_metadata_extension_randomness.rs

1/*
2 * Aptos Node API
3 *
4 * The Aptos Node API is a RESTful API for client applications to interact with the Aptos blockchain.
5 *
6 * The version of the OpenAPI document: 1.2.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct BlockMetadataExtensionRandomness {
16    /// All bytes (Vec<u8>) data is represented as hex-encoded string prefixed with `0x` and fulfilled with two hex digits per byte.  Unlike the `Address` type, HexEncodedBytes will not trim any zeros. 
17    #[serde(rename = "randomness", skip_serializing_if = "Option::is_none")]
18    pub randomness: Option<String>,
19}
20
21impl BlockMetadataExtensionRandomness {
22    pub fn new() -> BlockMetadataExtensionRandomness {
23        BlockMetadataExtensionRandomness {
24            randomness: None,
25        }
26    }
27}
28