fireblocks_sdk/models/
draft_response_v2.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/// DraftResponseV2 : Response object for draft operations
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct DraftResponseV2 {
17    /// Operation status
18    #[serde(rename = "status")]
19    pub status: String,
20    /// Draft rules
21    #[serde(rename = "rules")]
22    pub rules: Vec<models::PolicyRuleV2>,
23    /// Draft unique id
24    #[serde(rename = "draftId")]
25    pub draft_id: String,
26    #[serde(rename = "metadata")]
27    pub metadata: models::PolicyMetadataV2,
28}
29
30impl DraftResponseV2 {
31    /// Response object for draft operations
32    pub fn new(
33        status: String,
34        rules: Vec<models::PolicyRuleV2>,
35        draft_id: String,
36        metadata: models::PolicyMetadataV2,
37    ) -> DraftResponseV2 {
38        DraftResponseV2 {
39            status,
40            rules,
41            draft_id,
42            metadata,
43        }
44    }
45}