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