fireblocks_sdk/models/
signed_message_signature.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, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct SignedMessageSignature {
16    /// R + S values concatenated
17    #[serde(rename = "fullSig", skip_serializing_if = "Option::is_none")]
18    pub full_sig: Option<String>,
19    #[serde(rename = "r", skip_serializing_if = "Option::is_none")]
20    pub r: Option<String>,
21    #[serde(rename = "s", skip_serializing_if = "Option::is_none")]
22    pub s: Option<String>,
23    #[serde(rename = "v", skip_serializing_if = "Option::is_none")]
24    pub v: Option<V>,
25}
26
27impl SignedMessageSignature {
28    pub fn new() -> SignedMessageSignature {
29        SignedMessageSignature {
30            full_sig: None,
31            r: None,
32            s: None,
33            v: None,
34        }
35    }
36}
37///
38#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
39pub enum V {
40    #[serde(rename = "0")]
41    Variant0,
42    #[serde(rename = "1")]
43    Variant1,
44}
45
46impl Default for V {
47    fn default() -> V {
48        Self::Variant0
49    }
50}