fireblocks_sdk/models/derivation_path_config_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/// DerivationPathConfigV2 : Derivation path configuration
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct DerivationPathConfigV2 {
17 /// Derivation path as array of numbers
18 #[serde(rename = "path")]
19 pub path: Vec<f64>,
20 /// Whether this is a partial path
21 #[serde(rename = "partial", skip_serializing_if = "Option::is_none")]
22 pub partial: Option<bool>,
23}
24
25impl DerivationPathConfigV2 {
26 /// Derivation path configuration
27 pub fn new(path: Vec<f64>) -> DerivationPathConfigV2 {
28 DerivationPathConfigV2 {
29 path,
30 partial: None,
31 }
32 }
33}