aptos_client_icp/models/delete_module.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/// DeleteModule : Delete a module
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct DeleteModule {
17 /// A hex encoded 32 byte Aptos account address. This is represented in a string as a 64 character hex string, sometimes shortened by stripping leading 0s, and adding a 0x. For example, address 0x0000000000000000000000000000000000000000000000000000000000000001 is represented as 0x1.
18 #[serde(rename = "address")]
19 pub address: String,
20 /// State key hash
21 #[serde(rename = "state_key_hash")]
22 pub state_key_hash: String,
23 /// Move module id is a string representation of Move module. Format: `{address}::{module name}` `address` should be hex-encoded 32 byte account address that is prefixed with `0x`. Module name is case-sensitive.
24 #[serde(rename = "module")]
25 pub module: String,
26}
27
28impl DeleteModule {
29 /// Delete a module
30 pub fn new(address: String, state_key_hash: String, module: String) -> DeleteModule {
31 DeleteModule {
32 address,
33 state_key_hash,
34 module,
35 }
36 }
37}
38