signer_hub_kit/models/envelope_box.rs
1/*
2 * signer-hub
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 0.3.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct EnvelopeBox {
16 #[serde(rename = "id")]
17 pub id: i32,
18 #[serde(rename = "envelope")]
19 pub envelope: Box<models::OApiEnvelope>,
20}
21
22impl EnvelopeBox {
23 pub fn new(id: i32, envelope: models::OApiEnvelope) -> EnvelopeBox {
24 EnvelopeBox {
25 id,
26 envelope: Box::new(envelope),
27 }
28 }
29}
30