cryptoapis/models/decode_raw_transaction_hex_risd2_vout.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 DecodeRawTransactionHexRisd2Vout {
16 #[serde(rename = "scriptPubKey")]
17 pub script_pub_key: Box<crate::models::DecodeRawTransactionHexRisd2ScriptPubKey>,
18 /// Represents the sent/received amount.
19 #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
20 pub value: Option<String>,
21}
22
23impl DecodeRawTransactionHexRisd2Vout {
24 pub fn new(script_pub_key: crate::models::DecodeRawTransactionHexRisd2ScriptPubKey) -> DecodeRawTransactionHexRisd2Vout {
25 DecodeRawTransactionHexRisd2Vout {
26 script_pub_key: Box::new(script_pub_key),
27 value: None,
28 }
29 }
30}
31
32