lethean/models/
raw_block_dto.rs

1/*
2 * Lethean VPN
3 *
4 * Distributed Virtual Private Marketplace
5 *
6 * The version of the OpenAPI document: 1.2.1
7 * Contact: contact@lethean.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct RawBlockDto {
16    #[serde(rename = "status")]
17    pub status: Status,
18    /// payload data
19    #[serde(rename = "data")]
20    pub data: Box<crate::models::RawBlockEntity>,
21}
22
23impl RawBlockDto {
24    pub fn new(status: Status, data: crate::models::RawBlockEntity) -> RawBlockDto {
25        RawBlockDto {
26            status,
27            data: Box::new(data),
28        }
29    }
30}
31
32/// 
33#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
34pub enum Status {
35    #[serde(rename = "success")]
36    Success,
37    #[serde(rename = "fail")]
38    Fail,
39}
40