1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/*
 * photon-indexer
 *
 * Solana indexer for general compression
 *
 * The version of the OpenAPI document: 0.28.0
 *
 * Generated by: https://openapi-generator.tech
 */

use crate::models;

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetLatestCompressionSignaturesPostRequest {
    /// An ID to identify the request.
    #[serde(rename = "id")]
    pub id: Id,
    /// The version of the JSON-RPC protocol.
    #[serde(rename = "jsonrpc")]
    pub jsonrpc: Jsonrpc,
    /// The name of the method to invoke.
    #[serde(rename = "method")]
    pub method: Method,
    #[serde(rename = "params")]
    pub params: Box<models::GetLatestCompressionSignaturesPostRequestParams>,
}

impl GetLatestCompressionSignaturesPostRequest {
    pub fn new(
        id: Id,
        jsonrpc: Jsonrpc,
        method: Method,
        params: models::GetLatestCompressionSignaturesPostRequestParams,
    ) -> GetLatestCompressionSignaturesPostRequest {
        GetLatestCompressionSignaturesPostRequest {
            id,
            jsonrpc,
            method,
            params: Box::new(params),
        }
    }
}
/// An ID to identify the request.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Id {
    #[serde(rename = "test-account")]
    TestAccount,
}

impl Default for Id {
    fn default() -> Id {
        Self::TestAccount
    }
}
/// The version of the JSON-RPC protocol.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Jsonrpc {
    #[serde(rename = "2.0")]
    Variant2Period0,
}

impl Default for Jsonrpc {
    fn default() -> Jsonrpc {
        Self::Variant2Period0
    }
}
/// The name of the method to invoke.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Method {
    #[serde(rename = "getLatestCompressionSignatures")]
    GetLatestCompressionSignatures,
}

impl Default for Method {
    fn default() -> Method {
        Self::GetLatestCompressionSignatures
    }
}