aptos-client-icp 0.0.1

The Aptos Node API is a RESTful API for client applications to interact with the Aptos blockchain.
Documentation
/*
 * Aptos Node API
 *
 * The Aptos Node API is a RESTful API for client applications to interact with the Aptos blockchain.
 *
 * The version of the OpenAPI document: 1.2.0
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// DeleteModule : Delete a module
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DeleteModule {
    /// 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. 
    #[serde(rename = "address")]
    pub address: String,
    /// State key hash
    #[serde(rename = "state_key_hash")]
    pub state_key_hash: String,
    /// 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. 
    #[serde(rename = "module")]
    pub module: String,
}

impl DeleteModule {
    /// Delete a module
    pub fn new(address: String, state_key_hash: String, module: String) -> DeleteModule {
        DeleteModule {
            address,
            state_key_hash,
            module,
        }
    }
}