fireblocks_sdk/models/
write_call_function_dto_abi_function.rs

1// Fireblocks API
2//
3// Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain.  - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
4//
5// The version of the OpenAPI document: 1.8.0
6// Contact: developers@fireblocks.com
7// Generated by: https://openapi-generator.tech
8
9use {
10    crate::models,
11    serde::{Deserialize, Serialize},
12};
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15#[serde(untagged)]
16pub enum WriteCallFunctionDtoAbiFunction {
17    WriteAbiFunction(models::WriteAbiFunction),
18    SolanaInstructionWithValue(models::SolanaInstructionWithValue),
19}
20
21impl Default for WriteCallFunctionDtoAbiFunction {
22    fn default() -> Self {
23        Self::WriteAbiFunction(Default::default())
24    }
25}
26///
27#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
28pub enum StateMutability {
29    #[serde(rename = "payable")]
30    Payable,
31    #[serde(rename = "nonpayable")]
32    Nonpayable,
33}
34
35impl Default for StateMutability {
36    fn default() -> StateMutability {
37        Self::Payable
38    }
39}
40///
41#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
42pub enum Type {
43    #[serde(rename = "function")]
44    Function,
45}
46
47impl Default for Type {
48    fn default() -> Type {
49        Self::Function
50    }
51}