Skip to main content

aptos_client_icp/models/
transaction_payload_deprecated_module_bundle_payload.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 TransactionPayloadDeprecatedModuleBundlePayload {
16    #[serde(rename = "type")]
17    pub r#type: Type,
18}
19
20impl TransactionPayloadDeprecatedModuleBundlePayload {
21    pub fn new(r#type: Type) -> TransactionPayloadDeprecatedModuleBundlePayload {
22        TransactionPayloadDeprecatedModuleBundlePayload {
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 = "module_bundle_payload")]
31    ModuleBundlePayload,
32}
33
34impl Default for Type {
35    fn default() -> Type {
36        Self::ModuleBundlePayload
37    }
38}
39