fireblocks_sdk/models/publish_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/// PublishDraftRequestV2 : Request schema for publishing draft with policy
15/// types and draft ID
16#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
17pub struct PublishDraftRequestV2 {
18 #[serde(rename = "policyTypes")]
19 pub policy_types: Vec<models::PolicyTypeV2>,
20 /// The ID of the draft to publish
21 #[serde(rename = "draftId")]
22 pub draft_id: String,
23}
24
25impl PublishDraftRequestV2 {
26 /// Request schema for publishing draft with policy types and draft ID
27 pub fn new(policy_types: Vec<models::PolicyTypeV2>, draft_id: String) -> PublishDraftRequestV2 {
28 PublishDraftRequestV2 {
29 policy_types,
30 draft_id,
31 }
32 }
33}