cryptoapis/models/create_single_transaction_request_from_address_without_fee_priority_ri_recipient.rs
1/*
2 * CryptoAPIs
3 *
4 * Crypto APIs is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of their blockchain applications. Crypto APIs provides unified endpoints and data, raw data, automatic tokens and coins forwardings, callback functionalities, and much more.
5 *
6 * The version of the OpenAPI document: 2021-03-20
7 * Contact: developers@cryptoapis.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct CreateSingleTransactionRequestFromAddressWithoutFeePriorityRiRecipient {
16 /// Defines the destination address.
17 #[serde(rename = "address")]
18 pub address: String,
19 /// Defines the amount sent to the destination address.
20 #[serde(rename = "amount")]
21 pub amount: String,
22 /// Represents the public address, which is a compressed and shortened form of a public key. The classic address is shown when the source address is an x-Address.
23 #[serde(rename = "classicAddress", skip_serializing_if = "Option::is_none")]
24 pub classic_address: Option<String>,
25 /// Defines the unit of the recieved amount for the address.
26 #[serde(rename = "unit")]
27 pub unit: String,
28}
29
30impl CreateSingleTransactionRequestFromAddressWithoutFeePriorityRiRecipient {
31 pub fn new(address: String, amount: String, unit: String) -> CreateSingleTransactionRequestFromAddressWithoutFeePriorityRiRecipient {
32 CreateSingleTransactionRequestFromAddressWithoutFeePriorityRiRecipient {
33 address,
34 amount,
35 classic_address: None,
36 unit,
37 }
38 }
39}
40
41