Skip to main content

aptos_client_icp/models/
block_metadata_extension_block_metadata_extension_empty.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 BlockMetadataExtensionBlockMetadataExtensionEmpty {
16    #[serde(rename = "type")]
17    pub r#type: Type,
18}
19
20impl BlockMetadataExtensionBlockMetadataExtensionEmpty {
21    pub fn new(r#type: Type) -> BlockMetadataExtensionBlockMetadataExtensionEmpty {
22        BlockMetadataExtensionBlockMetadataExtensionEmpty {
23            r#type,
24        }
25    }
26}
27/// 
28#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
29pub enum Type {
30    #[serde(rename = "v0")]
31    V0,
32}
33
34impl Default for Type {
35    fn default() -> Type {
36        Self::V0
37    }
38}
39