fireblocks_sdk/models/
update_draft_request_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/// UpdateDraftRequestV2 : Request schema for updating draft with policy types
15/// and rules
16#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
17pub struct UpdateDraftRequestV2 {
18    #[serde(rename = "policyTypes")]
19    pub policy_types: Vec<models::PolicyTypeV2>,
20    /// Array of policy rules
21    #[serde(rename = "rules")]
22    pub rules: Vec<models::PolicyRuleV2>,
23}
24
25impl UpdateDraftRequestV2 {
26    /// Request schema for updating draft with policy types and rules
27    pub fn new(
28        policy_types: Vec<models::PolicyTypeV2>,
29        rules: Vec<models::PolicyRuleV2>,
30    ) -> UpdateDraftRequestV2 {
31        UpdateDraftRequestV2 {
32            policy_types,
33            rules,
34        }
35    }
36}