Skip to main content

aptos_client_icp/models/
block_metadata_extension.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, Debug, PartialEq, Serialize, Deserialize)]
15#[serde(tag = "type")]
16pub enum BlockMetadataExtension {
17    #[serde(rename="v0")]
18    V0(Box<models::BlockMetadataExtensionBlockMetadataExtensionEmpty>),
19    #[serde(rename="v1")]
20    V1(Box<models::BlockMetadataExtensionBlockMetadataExtensionRandomness>),
21}
22
23impl Default for BlockMetadataExtension {
24    fn default() -> Self {
25        Self::V0(Default::default())
26    }
27}
28
29