rosetta_types/
construction_derive_response.rs

1/*
2 * Rosetta
3 *
4 * Build Once. Integrate Your Blockchain Everywhere.
5 *
6 * The version of the OpenAPI document: 1.4.13
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// ConstructionDeriveResponse : ConstructionDeriveResponse is returned by the `/construction/derive` endpoint.
12
13#[derive(Clone, Debug, PartialEq, Eq, Default, Serialize, Deserialize)]
14pub struct ConstructionDeriveResponse {
15    /// [DEPRECATED by `account_identifier` in `v1.4.4`] Address in network-specific format.
16    #[serde(rename = "address", skip_serializing_if = "Option::is_none")]
17    pub address: Option<String>,
18    #[serde(rename = "account_identifier", skip_serializing_if = "Option::is_none")]
19    pub account_identifier: Option<crate::AccountIdentifier>,
20    #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")]
21    pub metadata: Option<serde_json::Value>,
22}
23
24impl ConstructionDeriveResponse {
25    /// ConstructionDeriveResponse is returned by the `/construction/derive` endpoint.
26    pub fn new() -> ConstructionDeriveResponse {
27        ConstructionDeriveResponse {
28            address: None,
29            account_identifier: None,
30            metadata: None,
31        }
32    }
33}